@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

html {
    scroll-behavior: smooth;
     -webkit-overflow-scrolling: touch;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #2d3748;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove old nav styles - now using appointment.html header structure */

/* Override transparent header - make it solid blue */
.nav-header.nav-header-blue {
    background: rgba(26, 54, 93, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Login Button Loading Animation */
.login-button.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.login-button.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg width="24" height="18" xmlns="http://www.w3.org/2000/svg"><polyline points="0.157 8.965, 5.25 8.965, 8.203 18, 16.125 0, 18.75 9, 24 9" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="18, 54" stroke-dashoffset="72" style="animation: login-dash 1.4s linear infinite;"/></svg>') no-repeat center;
    background-size: contain;
    z-index: 2;
}

@keyframes login-dash {
    72.5% {
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Alternative inline SVG animation */
.login-loading-svg {
    display: inline-block;
    width: 24px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.login-loading-svg polyline {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-loading-svg polyline#back {
    stroke: rgba(255, 255, 255, 0.3);
}

.login-loading-svg polyline#front {
    stroke: #ffffff;
    stroke-dasharray: 18, 54;
    stroke-dashoffset: 72;
    animation: login-dash 1.4s linear infinite;
}

/* ← Professional Medical-Grade Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 20px 40px;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
}

/* ← Subtle professional background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(26, 54, 93, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(74, 144, 164, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 60px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.6s ease-out;
}

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

.benefits {
    flex: 1;
    padding-right: 40px;
}

/* ← Enhanced benefits section */
/* ← Professional benefits section */
.benefit-container h2 {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #1a365d;
    margin-bottom: 30px;
    line-height: 1.2;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.benefit-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-features li {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    color: #2d3748;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.8), rgba(237, 242, 247, 0.6));
    border-radius: 12px;
    border-left: 3px solid #4a90a4;
    border: 1px solid rgba(226, 232, 240, 0.4);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.5s ease-out calc(0.3s + var(--delay, 0s)) both;
}

.benefit-features li:nth-child(1) { --delay: 0s; }
.benefit-features li:nth-child(2) { --delay: 0.1s; }
.benefit-features li:nth-child(3) { --delay: 0.2s; }
.benefit-features li:nth-child(4) { --delay: 0.3s; }

.benefit-features li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.15);
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.9), rgba(237, 242, 247, 0.8));
    border-color: #2d5a87;
}

.benefit-features i {
    color: white;
    margin-right: 16px;
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 600;
}

/* ← Professional login section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-container {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 50px 40px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    position: relative;
    border: none;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 35px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a365d;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid #cad1da;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4a90a4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.08);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.25);
    position: relative;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.3);
    background: linear-gradient(135deg, #2d5a87, #1a365d);
}

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

p {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    position: relative;
    z-index: 1;
}

a.register-link,
a.forgot-password-link {
    color: #4a90a4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

a.register-link::after,
a.forgot-password-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a90a4;
    transition: width 0.3s ease;
}

a.register-link:hover::after,
a.forgot-password-link:hover::after {
    width: 100%;
}

a.register-link:hover,
a.forgot-password-link:hover {
    color: #2d5a87;
}

/* ← Responsive design */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 50px 40px;
    }
    
    .benefits {
        padding-right: 0;
    }
    
    .benefit-container h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .benefit-features li {
        font-size: 1rem;
        padding: 14px 18px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 5px 15px 30px;
    }

    .hero-content {
        padding: 40px 30px;
    }

    .benefit-container h2 {
        font-size: 1.8rem;
    }

    .login-container {
        padding: 0;
    }

    .login-container h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
}

/* Footer Styles - Fixed and Improved */
.footer {
    background: #1a365d;
    color: #f7fafc;
    margin-top: 0;
    width: 100%;
    
}

.footer-top {
    padding: 80px 20px 40px;
    border-bottom: 1px solid rgba(247, 250, 252, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
     padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-section h3.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f7fafc;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #f7fafc;
}

.footer-description {
    line-height: 1.7;
    color: rgba(247, 250, 252, 0.8);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(247, 250, 252, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #4a90a4;
    transform: translateX(4px);
}

.footer-hours {
    margin-bottom: 32px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(247, 250, 252, 0.1);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(247, 250, 252, 0.15);
    font-size: 1rem;
    align-items: center;
    min-height: 40px;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:first-child {
    color: rgba(247, 250, 252, 0.9);
    flex: 1;
    font-weight: 500;
}

.hours-row span:last-child {
    color: #f7fafc;
    font-weight: 600;
    text-align: right;
    padding: 4px 12px;
    border-radius: 4px;
    min-width: 120px;
    flex-shrink: 0;
}

.footer-contact-info {
    margin-top: 24px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    padding: 8px 0;
}

.contact-row i {
    color: #4a90a4;
    width: 20px;
    font-size: 1.1rem;
}

.contact-row span {
    color: rgba(247, 250, 252, 0.9);
    font-weight: 500;
}

.footer-map-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(247, 250, 252, 0.1);
}

.footer-map-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f7fafc;
}

.footer-map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.footer-directions-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.footer-directions-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #2d5a87, #1a365d);
    color: white;
    text-decoration: none;
}

.footer-bottom {
    background: #0f2442;
    padding: 30px 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    color: rgba(247, 250, 252, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(247, 250, 252, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #4a90a4;
}

.footer-bottom-links .separator {
    color: rgba(247, 250, 252, 0.4);
}

.scroll-animate {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.scroll-animate.from-right {
    transform: translateX(50px);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.3s;
}

sword wrapper and toggle styling */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"] {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #64748b;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
    top: 55px;

}

.toggle-password:hover {
    color: #4a90a4;
}

/* Error message shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.error-message {
    animation: shake 0.3s ease-in-out;
}

/* Form field error styling */
.form-group.error input {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
    background-color: #fef5f5 !important;
}

.form-group.error input:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

/* Mobile navigation styles now handled by styles.css */

/* Language Switcher Styles for Login Page */
.language-switcher {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.language-toggle:active {
    transform: translateY(0);
}

.current-language {
    font-weight: 600;
    color: #fff;
}

.language-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 4px;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(125, 215, 240, 0.1);
    color: #4a90a4;
    transform: translateX(4px);
}

.language-option:active {
    background: rgba(125, 215, 240, 0.2);
}

/* Language Switcher in Header */
.nav-header-auth .language-switcher {
    margin-left: 15px;
}

.nav-header-auth .language-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    font-size: 13px;
}

.nav-header-auth .language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Language Switcher */
.nav-mobile-auth .language-switcher {
    margin: 10px 0;
    width: 100%;
}

.nav-mobile-auth .language-dropdown {
    width: 100%;
}

.nav-mobile-auth .language-toggle {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.nav-mobile-auth .language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-mobile-auth .language-options {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 8px;
    display: none;
}

.nav-mobile-auth .language-options.show {
    display: block;
}

.nav-mobile-auth .language-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 6px;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
}

.nav-mobile-auth .language-option:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: none;
}

.nav-mobile-auth .language-option:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-header-auth .language-switcher {
        display: none;
    }
    
    .nav-mobile-auth .language-switcher {
        display: block;
    }
}

@media (min-width: 769px) {
    .nav-mobile-auth .language-switcher {
        display: none;
    }
}

/* Animation for language change */
.language-toggle .current-language {
    transition: all 0.3s ease;
}

.language-toggle:hover .current-language {
    transform: scale(1.05);
}

/* Focus states for accessibility */
.language-toggle:focus {
    outline: 2px solid #4a90a4;
    outline-offset: 2px;
}

.language-option:focus {
    outline: 2px solid #4a90a4;
    outline-offset: -2px;
}

/* Loading state */
.language-toggle.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.language-toggle.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Login Input Validation Styles */
.form-group {
    position: relative;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.has-success input,
.form-group.has-success textarea {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

input.error,
textarea.error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

input.success,
textarea.success {
    border-color: #16a34a !important;
    background-color: #f0fdf4;
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    display: none;
}

.field-error::before {
    content: "⚠️ ";
    margin-right: 0.25rem;
}

/* Validation icons removed - no visual feedback */
.form-group.has-success::after {
    display: none;
}

.form-group.has-error::after {
    display: none;
}

/* Animation for validation states */
.form-group.has-error input,
.form-group.has-success input {
    transition: all 0.3s ease;
}

.field-error {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for validation */
.form-group.has-error input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group.has-success input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Ensure icons don't interfere with input padding */
.form-group.has-success input,
.form-group.has-error input {
    padding-right: 2.5rem;
}

/* Special handling for password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-group.has-success::after,
.password-wrapper .form-group.has-error::after {
    right: 3rem; /* Account for the eye icon */
    top: 1.25rem; /* Align with the input field */
}

/* Ensure the eye icon stays in the correct position */
.password-wrapper .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15; /* Higher than validation icons */
}

/* Mobile responsive validation styles */
@media (max-width: 768px) {
    .form-group.has-success::after,
    .form-group.has-error::after {
        right: 0.75rem;
        top: 1rem;
        font-size: 1rem;
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .password-wrapper .form-group.has-success::after,
    .password-wrapper .form-group.has-error::after {
        right: 2.75rem;
        top: 1rem;
    }
    
    .field-error {
        font-size: 0.8rem;
        padding: 0.375rem;
    }
    
    /* Adjust padding for mobile */
    .form-group.has-success input,
    .form-group.has-error input {
        padding-right: 2.25rem;
    }
}

/* Forgot Password Modal Styles */
#forgotPasswordModal,
#resetPasswordModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#forgotPasswordModal.show,
#resetPasswordModal.show {
    opacity: 1;
}

#forgotPasswordModal .modal,
#resetPasswordModal .modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#forgotPasswordModal.show .modal,
#resetPasswordModal.show .modal {
    transform: scale(1);
}

#forgotPasswordModal .modal-header,
#resetPasswordModal .modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#forgotPasswordModal .modal-title,
#resetPasswordModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
    display: flex;
    align-items: center;
    gap: 8px;
}

#forgotPasswordModal .modal-close,
#resetPasswordModal .modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#forgotPasswordModal .modal-close:hover,
#resetPasswordModal .modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

#forgotPasswordModal .modal-body,
#resetPasswordModal .modal-body {
    padding: 24px;
}

#forgotPasswordModal .modal-text,
#resetPasswordModal .modal-text {
    margin-bottom: 24px;
    color: #4a5568;
    line-height: 1.6;
}

#forgotPasswordModal .form-actions,
#resetPasswordModal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

#forgotPasswordModal .btn,
#resetPasswordModal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#forgotPasswordModal .btn-secondary,
#resetPasswordModal .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

#forgotPasswordModal .btn-secondary:hover,
#resetPasswordModal .btn-secondary:hover {
    background: #cbd5e0;
}

#forgotPasswordModal .btn-primary,
#resetPasswordModal .btn-primary {
    background: #3182ce;
    color: white;
}

#forgotPasswordModal .btn-primary:hover,
#resetPasswordModal .btn-primary:hover {
    background: #2c5aa0;
}

#forgotPasswordModal .btn:disabled,
#resetPasswordModal .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #forgotPasswordModal .modal,
    #resetPasswordModal .modal {
        width: 95%;
        margin: 20px;
    }
    
    #forgotPasswordModal .form-actions,
    #resetPasswordModal .form-actions {
        flex-direction: column;
    }
    
    #forgotPasswordModal .btn,
    #resetPasswordModal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Step navigation styling */
#emailStep,
#tokenStep {
    transition: all 0.3s ease;
}

#tokenStep {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced button styling */
#forgotPasswordModal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

#forgotPasswordModal .btn::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;
}

#forgotPasswordModal .btn:hover::before {
    left: 100%;
}

#forgotPasswordModal .btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

#forgotPasswordModal .btn:hover i {
    transform: scale(1.1);
}