/* Fonia SmartAgent - Login Styles */

:root {
    --primary-color: #57D3D1;
    --primary-dark: #3ba6a4;
    --primary-light: #7ee0de;
    --secondary-color: #6c757d;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-color) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(87, 211, 209, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(87, 211, 209, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(84, 217, 215, 0.9) 0%, rgba(200, 245, 244, 0.8) 50%, rgba(84, 217, 215, 0.85) 100%);
}

/* Animated Wave Background Effects - Layer 1 */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2354d9d735' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23c8f5f425' fill-opacity='1' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,80C672,64,768,64,864,80C960,96,1056,128,1152,128C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 200% 100%, 250% 120%;
    animation: wave-movement 15s ease-in-out infinite;
    z-index: 1;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff05' fill-opacity='1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 180% 120%;
    animation: wave-movement-reverse 20s ease-in-out infinite;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(84, 217, 215, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 217, 215, 0.1);
    animation: gentle-glow 8s ease-in-out infinite;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    background: linear-gradient(135deg, rgba(87, 211, 209, 0.05) 0%, rgba(87, 211, 209, 0.02) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(87, 211, 209, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.welcome-section > * {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(-25%, -25%) rotate(0deg); }
    33% { transform: translate(-25%, -35%) rotate(120deg); }
    66% { transform: translate(-35%, -25%) rotate(240deg); }
}

.logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.feature-item {
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 211, 209, 0.1);
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(87, 211, 209, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(87, 211, 209, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-item > * {
    position: relative;
    z-index: 1;
}

.feature-item:hover {
    background: rgba(87, 211, 209, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(87, 211, 209, 0.15);
    border-color: rgba(87, 211, 209, 0.3);
}

.feature-icon-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(87, 211, 209, 0.3);
    transition: var(--transition);
}

.feature-icon-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon-container::before {
    opacity: 1;
}

.feature-item:hover .feature-icon-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(87, 211, 209, 0.4);
}

.feature-icon {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
    fill: none;
    display: block;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-text {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.feature-description {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 400;
    opacity: 0.8;
    transition: var(--transition);
}

.feature-item:hover .feature-text {
    color: var(--primary-color);
}

.feature-item:hover .feature-description {
    opacity: 1;
    color: var(--dark-color);
}

.form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label svg {
    margin-right: 0.5rem;
    color: var(--primary-color);
    stroke: var(--primary-color);
    vertical-align: middle;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--light-color);
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(87, 211, 209, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    stroke: white;
    fill: none;
}

.support-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}

.support-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.support-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.support-link svg,
.forgot-password svg,
.checkbox-label svg {
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
}

.footer {
    text-align: center;
    padding: 1rem;
    color: rgba(84, 217, 215, 0.8);
    font-size: 0.875rem;
    position: relative;
    z-index: 15;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer svg {
    vertical-align: middle;
    stroke: rgba(84, 217, 215, 0.9);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: rgba(87, 211, 209, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.5rem;
}

.modal-title {
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    background: rgba(87, 211, 209, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 1.5rem;
}

.alert {
    border-radius: var(--border-radius);
    border: 1px solid rgba(87, 211, 209, 0.2);
    background: rgba(87, 211, 209, 0.08);
    color: var(--dark-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error States */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.08) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #721c24 !important;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(87, 211, 209, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 500px;
        min-height: auto;
    }

    .welcome-section,
    .form-section {
        padding: 2rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .feature-item {
        padding: 1.25rem 0.75rem;
        margin: 0 0.5rem;
    }

    .feature-item:hover {
        transform: translateY(-2px);
    }

    .feature-icon-container {
        width: 56px;
        height: 56px;
        margin-bottom: 0.75rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .feature-item:hover .feature-icon-container {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
    }

    .welcome-section,
    .form-section {
        padding: 1.5rem;
    }

    .login-card {
        border-radius: var(--border-radius);
    }
}

/* Accessibility */
.form-input:focus-visible,
.login-button:focus-visible,
.checkbox:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .login-button {
        border: 3px solid var(--primary-color);
    }
}

/* Elegant Password Reset Modal Styles */
.modal-header {
    padding: 3rem 2rem 1rem 2rem !important;
    border: none !important;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    position: relative !important;
}

.modal-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.reset-header-icon {
    background: linear-gradient(135deg, var(--primary-color), #45b8b6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(87, 211, 209, 0.3);
    margin-bottom: 1rem;
}

.reset-header-icon svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.modal-title-text {
    background: linear-gradient(135deg, var(--primary-color), #45b8b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.modal-body {
    padding: 0 3rem 3rem 3rem !important;
    background: white;
}

.modal-header .btn-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    z-index: 1060 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.modal-header .btn-close svg {
    color: #666 !important;
    stroke: #666 !important;
    width: 16px !important;
    height: 16px !important;
}

.modal-header .btn-close:hover {
    background: #f8f9fa !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border-color: #ccc !important;
}

.modal-header .btn-close:hover svg {
    color: #333 !important;
    stroke: #333 !important;
}

/* Elegant Form Styling */
.form-floating {
    margin-bottom: 2rem !important;
}

.form-floating > .form-control {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1.5rem 1rem 0.5rem 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #fafbfc !important;
    height: auto !important;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(87, 211, 209, 0.15) !important;
    background: white !important;
    transform: translateY(-2px) !important;
}

.form-floating > label {
    padding: 1rem !important;
    color: #8892a4 !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color) !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem) !important;
}

/* Elegant Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #45b8b6 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45b8b6 0%, var(--primary-color) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(87, 211, 209, 0.4) !important;
}

.btn-outline-secondary {
    border: 2px solid #e9ecef !important;
    color: #6c757d !important;
    border-radius: 12px !important;
    padding: 1rem 2rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
    transform: translateY(-1px) !important;
}

/* Success Message Styling */
#resetSuccessMessage {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-success-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
    animation: successPulse 2s infinite;
}

.reset-success-icon svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(40, 167, 69, 0.4);
    }
}

.alert-info {
    background: linear-gradient(135deg, rgba(87, 211, 209, 0.1), rgba(69, 184, 182, 0.1)) !important;
    border: 1px solid rgba(87, 211, 209, 0.3) !important;
    color: #0c5460 !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
}

/* Text Styling */
h6 {
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

.text-muted {
    color: #8892a4 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: #28a745 !important;
}

/* Login Messages */
#loginError, #loginSuccess {
    border-radius: 12px !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    margin-top: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    animation: slideInUp 0.3s ease-out !important;
}

#loginError {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05)) !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

#loginSuccess {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05)) !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-header {
        padding: 2rem 1.5rem 1rem 1.5rem !important;
    }
    
    .modal-body {
        padding: 0 1.5rem 2rem 1.5rem !important;
    }
    
    .reset-header-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .reset-header-icon svg {
        width: 40px !important;
        height: 40px !important;
    }

    .reset-success-icon {
        width: 75px !important;
        height: 75px !important;
    }

    .reset-success-icon svg {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
    }
    
    .modal-header {
        padding: 1.5rem 1rem 0.5rem 1rem !important;
    }
    
    .modal-body {
        padding: 0 1rem 1.5rem 1rem !important;
    }
    
    .reset-header-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .reset-header-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .reset-success-icon {
        width: 70px !important;
        height: 70px !important;
    }

    .reset-success-icon svg {
        width: 40px !important;
        height: 40px !important;
    }
    
    .btn-primary,
    .btn-outline-secondary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    .modal-title {
        font-size: 1.2rem !important;
    }

    .form-floating > .form-control {
        font-size: 0.95rem !important;
    }

    .btn-close {
        width: 30px !important;
        height: 30px !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
    }
}

.modal-footer .footer-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.modal-footer .footer-actions {
    display: flex;
    align-items: center;
}

.modal-lg .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.alert-info.border-0 {
    border-left: 4px solid var(--primary-color) !important;
}

.alert-success.border-0 {
    border-left: 4px solid #28a745 !important;
}

/* Enhanced button styles for modal */
.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-footer .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-footer .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Processing animation */
.processing-spinner {
    animation: float 2s ease-in-out infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .processing-spinner,
    .success-icon {
        animation: none !important;
    }
}

/* ========================================
   Minimalist Error Notification Modal
   ======================================== */

.error-modal-minimal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.btn-close-minimal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-close-minimal:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.btn-close-minimal svg {
    stroke: #6c757d;
    width: 16px;
    height: 16px;
}

.modal-body-minimal {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.error-icon-minimal {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    animation: gentle-pulse 2s infinite;
}

.error-icon-minimal svg {
    stroke: white;
    stroke-width: 2;
}

.error-title-minimal {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.error-message-minimal {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.modal-actions-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-retry-minimal {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-retry-minimal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-forgot-minimal {
    background: none;
    color: #6c757d;
    border: none;
    padding: 0.5rem;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-forgot-minimal:hover {
    color: #495057;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(220, 53, 69, 0.25);
    }
}

/* ========================================
   Zen Wave Animations
   ======================================== */

@keyframes wave-movement {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.6;
    }
    25% {
        transform: translateX(-5%) translateY(-10px);
        opacity: 0.8;
    }
    50% {
        transform: translateX(0) translateY(-20px);
        opacity: 1;
    }
    75% {
        transform: translateX(5%) translateY(-10px);
        opacity: 0.8;
    }
}

@keyframes wave-movement-reverse {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translateX(7%) translateY(-15px) scale(1.02);
        opacity: 0.6;
    }
    66% {
        transform: translateX(-3%) translateY(-25px) scale(0.98);
        opacity: 0.8;
    }
}

@keyframes float-particles {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Floating Particles Effect */
.login-container::after {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(84, 217, 215, 0.6), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(84, 217, 215, 0.7), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(200, 245, 244, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.4), transparent),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff20' fill-opacity='1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat;
    background-size: 200px 100px, 300px 150px, 250px 120px, 280px 140px, 180px 90px, 180% 120%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, bottom center;
    animation: wave-movement-reverse 20s ease-in-out infinite, float-particles 25s linear infinite;
}

/* Additional Wave Layer for Enhanced Visibility */
.wave-layer-extra {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff30' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,208C672,213,768,203,864,186.7C960,171,1056,149,1152,154.7C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 160% 140%;
    animation: wave-movement-slow 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gentle-glow {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 40px rgba(84, 217, 215, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 60px rgba(132, 234, 232, 0.25);
        transform: scale(1.002);
    }
}

/* ========================================
   Zen Floating Particles
   ======================================== */

.zen-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(84, 217, 215, 0.8) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(200, 245, 244, 0.4) 80%, transparent 100%);
    border-radius: 50%;
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(84, 217, 215, 0.3);
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation: zen-float-1 18s ease-in-out infinite;
}

.particle-2 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 85%;
    animation: zen-float-2 22s ease-in-out infinite;
}

.particle-3 {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 75%;
    animation: zen-float-3 16s ease-in-out infinite;
}

.particle-4 {
    width: 10px;
    height: 10px;
    top: 80%;
    left: 20%;
    animation: zen-float-4 20s ease-in-out infinite;
}

.particle-5 {
    width: 5px;
    height: 5px;
    top: 15%;
    left: 60%;
    animation: zen-float-5 24s ease-in-out infinite;
}

.particle-6 {
    width: 8px;
    height: 8px;
    top: 70%;
    left: 45%;
    animation: zen-float-6 19s ease-in-out infinite;
}

@keyframes zen-float-1 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(15px) scale(1.2); opacity: 0.7; }
    50% { transform: translateY(-10px) translateX(-10px) scale(0.8); opacity: 1; }
    75% { transform: translateY(-25px) translateX(20px) scale(1.1); opacity: 0.5; }
}

@keyframes zen-float-2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.4; }
    33% { transform: translateY(-20px) translateX(-15px) rotate(120deg); opacity: 0.8; }
    66% { transform: translateY(-35px) translateX(10px) rotate(240deg); opacity: 0.6; }
}

@keyframes zen-float-3 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-40px) scale(1.5); opacity: 0.9; }
}

@keyframes zen-float-4 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-15px) translateX(-20px); opacity: 0.7; }
    50% { transform: translateY(-30px) translateX(5px); opacity: 1; }
    75% { transform: translateY(-20px) translateX(15px); opacity: 0.6; }
}

@keyframes zen-float-5 {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.4; }
    20% { transform: translateY(-25px) rotate(72deg) scale(1.3); opacity: 0.8; }
    40% { transform: translateY(-10px) rotate(144deg) scale(0.9); opacity: 0.9; }
    60% { transform: translateY(-35px) rotate(216deg) scale(1.1); opacity: 0.7; }
    80% { transform: translateY(-15px) rotate(288deg) scale(1.2); opacity: 0.5; }
}

@keyframes zen-float-6 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    40% { transform: translateY(-20px) translateX(12px) scale(0.8); opacity: 1; }
    80% { transform: translateY(-32px) translateX(-8px) scale(1.3); opacity: 0.4; }
}

@keyframes wave-movement-slow {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateX(-3%) translateY(-8px) scale(1.01);
        opacity: 0.9;
    }
    50% {
        transform: translateX(0) translateY(-15px) scale(0.99);
        opacity: 1;
    }
    75% {
        transform: translateX(3%) translateY(-8px) scale(1.01);
        opacity: 0.9;
    }
}

/* Interactive Dialia Color Effects */
.login-card:hover {
    box-shadow: var(--shadow-lg), 0 0 50px rgba(84, 217, 215, 0.25);
    border-color: rgba(84, 217, 215, 0.2);
}

.login-container:hover .zen-particles .particle {
    background: radial-gradient(circle, rgba(84, 217, 215, 0.7) 0%, rgba(132, 234, 232, 0.4) 50%, transparent 100%);
    opacity: 0.9;
    transform: scale(1.1);
    transition: all 0.3s ease;
}