/* Forgot Password Page - Uses CSS variables from customTheme.css */

* {
    font-family: 'Poppins', sans-serif;
}

body {
    /* Full multi-stop theme gradient (dark slate → teals → cyan → amber → gold)
       layered under a darkening overlay so the card still pops. */
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        var(--theme-gradient-full);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.forgot-password-container {
    width: 100%;
    max-width: 500px;
}

.forgot-password-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-password-header {
    background: var(--theme-gradient-header);
    color: white;
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
}

    .forgot-password-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
        opacity: 0.1;
    }

    .forgot-password-header h1 {
        margin: 0 0 10px 0;
        font-size: 32px;
        font-weight: 700;
        position: relative;
    }

    .forgot-password-header p {
        margin: 0;
        opacity: 0.95;
        font-size: 15px;
        font-weight: 300;
        position: relative;
    }

.forgot-password-body {
    padding: 40px;
}

    .forgot-password-body label {
        font-weight: 500;
        color: #333;
        margin-bottom: 8px;
        display: block;
        font-size: 14px;
    }

    .forgot-password-body input[type="text"],
    .forgot-password-body input[type="password"],
    .forgot-password-body input[type="email"],
    .forgot-password-body .form-control {
        border-radius: 10px;
        border: 2px solid var(--theme-border);
        padding: 14px 18px;
        font-size: 15px;
        width: 100%;
        transition: all 0.3s ease;
        font-weight: 400;
        background: #fafafa;
    }

        .forgot-password-body input[type="text"]:focus,
        .forgot-password-body input[type="password"]:focus,
        .forgot-password-body input[type="email"]:focus,
        .forgot-password-body .form-control:focus {
            border-color: var(--theme-secondary);
            outline: none;
            box-shadow: 0 0 0 4px var(--theme-focus-ring);
            background: white;
        }

    .forgot-password-body button[type="submit"],
    .forgot-password-body .btn-primary {
        background: var(--theme-gradient-button);
        border: none;
        border-radius: 10px;
        color: white;
        padding: 16px;
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s ease;
        cursor: pointer;
        margin-top: 10px;
    }

        .forgot-password-body button[type="submit"]:hover,
        .forgot-password-body .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px var(--theme-shadow-hover);
        }

        .forgot-password-body button[type="submit"]:active,
        .forgot-password-body .btn-primary:active {
            transform: translateY(0);
        }

.form-group {
    margin-bottom: 24px;
}

.text-danger,
.field-validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 24px;
    padding: 14px 18px;
    font-size: 14px;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

.alert-info {
    background: #e7f3ff;
    color: #0066cc;
}

.alert strong {
    font-weight: 600;
}

.forgot-password-body a {
    color: var(--theme-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

    .forgot-password-body a:hover {
        color: var(--theme-primary);
    }

.back-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

    .back-link a {
        color: var(--theme-text-muted);
        font-size: 14px;
        font-weight: 400;
    }

        .back-link a:hover {
            color: var(--theme-secondary);
        }

.intro-text {
    color: var(--theme-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .forgot-password-header {
        padding: 40px 30px 30px;
    }

        .forgot-password-header h1 {
            font-size: 28px;
        }

    .forgot-password-body {
        padding: 30px 25px;
    }
}
