/* Forgot Password Page Styles */

body {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    touch-action: manipulation;
    position: relative;
}
[data-theme="dark"] .login-container {
    background-color: #272728;
}

.page-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.page-logo img {
    height: 28px;
    max-width: 100%;
}
[data-theme="dark"] .page-logo img {
    filter: invert(1) hue-rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.login-card {
    max-width: 400px;
    width: 90%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 24px 24px;
    text-align: center;
    animation: cardEntrance 0.8s ease-out forwards;
    box-sizing: border-box;
}
[data-theme="dark"] .login-card {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lock-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-icon svg {
    width: 64px;
    height: 64px;
}

[data-theme="dark"] .lock-icon svg path,
[data-theme="dark"] .lock-icon svg rect {
    stroke: #666;
}

[data-theme="dark"] .lock-icon svg circle {
    fill: #666;
}

.forgot-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
[data-theme="dark"] .forgot-title {
    color: #e0e0e0;
}

.forgot-subtitle {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 24px;
    line-height: 1.4;
}
[data-theme="dark"] .forgot-subtitle {
    color: #9CA3AF;
}

.form-label {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
[data-theme="dark"] .form-label {
    color: #e0e0e0;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 24px;
    box-sizing: border-box;
    background-color: #F9FAFB;
}
[data-theme="dark"] .email-input {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
}

.email-input:focus {
    outline: none;
    border-color: #c93891;
    background-color: white;
}
[data-theme="dark"] .email-input:focus {
    background-color: #333;
}

.email-submit {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(71deg, #c93891 22.69%, #0147ff 110.27%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.email-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.loading-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #c93891;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}
[data-theme="dark"] .loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #c93891;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message {
    margin: 15px 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}
[data-theme="dark"] .status-message {
    color: #e0e0e0;
}

.success-message {
    color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: left;
}

.back-to-login-container {
    margin: 16px 0 24px 0;
    text-align: center;
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
[data-theme="dark"] .back-to-login {
    color: #aaa;
}

.back-to-login:hover {
    color: #333;
    text-decoration: none;
}
[data-theme="dark"] .back-to-login:hover {
    color: #e0e0e0;
}

.hidden {
    display: none;
}

@media (min-width: 1200px) {
    .login-card {
        max-width: 420px;
        padding: 30px 30px;
    }
    
    .login-logo img {
        height: 32px;
    }

    .forgot-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .login-container {
        background-color: #fff;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    
    [data-theme="dark"] .login-container {
        background-color: #272728;
    }
    
    .login-card {
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        padding: 32px 16px;
        border-radius: 0;
        height: auto;
    }

    .lock-icon {
        margin-bottom: 20px;
    }
    
    .lock-icon svg {
        width: 56px;
        height: 56px;
    }

    .forgot-title {
        font-size: 22px;
    }

    .email-input {
        padding: 16px 20px;
        font-size: 16px;
    }

    .email-submit {
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 24px 16px;
        width: 100%;
        max-width: 360px;
        margin: auto;
    }

    .lock-icon {
        margin-bottom: 20px;
    }
    
    .lock-icon svg {
        width: 48px;
        height: 48px;
    }

    .forgot-title {
        font-size: 20px;
    }

    .forgot-subtitle {
        font-size: 13px;
    }
}