/* =========================================================
   WFH CONNECT — PASSWORD RECOVERY
   Forgot Password + Reset Password
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #f5f7fb;
    color: #111827;
}

/* =========================================================
   PAGE
   ========================================================= */

.password-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(124, 58, 237, 0.07),
            transparent 35%
        ),
        #f5f7fb;
}

/* =========================================================
   CARD
   ========================================================= */

.password-card {
    width: 100%;
    max-width: 470px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    padding: 42px 40px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);

    animation: passwordCardIn 0.35s ease-out;
}

@keyframes passwordCardIn {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LOGO
   ========================================================= */

.password-logo {
    display: flex;
    justify-content: center;

    margin-bottom: 28px;
}

.password-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-logo img {
    width: 175px;
    height: auto;

    display: block;
}

/* =========================================================
   HEADING
   ========================================================= */

.password-card h1 {
    margin: 0 0 10px;

    text-align: center;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.5px;

    color: #111827;
}

.password-description {
    margin: 0 auto 28px;

    max-width: 390px;

    text-align: center;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.65;
}

/* =========================================================
   FORM
   ========================================================= */

.password-form {
    width: 100%;
}

.password-form-group {
    margin-bottom: 20px;
}

.password-form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #374151;
}

.password-form-group input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #ffffff;

    color: #111827;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.password-form-group input::placeholder {
    color: #9ca3af;
}

.password-form-group input:hover {
    border-color: #9ca3af;
}

.password-form-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);

    background: #ffffff;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.password-submit {
    width: 100%;

    height: 50px;

    border: 0;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-size: 15px;

    font-weight: 650;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.password-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.password-submit:active {
    transform: translateY(0);
}

.password-submit:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);

    outline-offset: 2px;
}

/* =========================================================
   ALERTS
   ========================================================= */

.password-alert {
    margin-bottom: 22px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.5;
}

.password-alert.success {
    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #065f46;
}

.password-alert.error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #991b1b;
}

/* =========================================================
   BACK TO LOGIN
   ========================================================= */

.password-footer {
    margin-top: 25px;

    padding-top: 22px;

    border-top: 1px solid #eef0f3;

    text-align: center;
}

.password-footer a {
    color: #2563eb;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.password-footer a:hover {
    color: #1d4ed8;

    text-decoration: underline;
}

/* =========================================================
   SECURITY NOTE
   ========================================================= */

.password-security-note {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 22px;

    padding: 13px 14px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    color: #64748b;

    font-size: 12px;

    line-height: 1.55;
}

.password-security-note strong {
    color: #475569;
}

/* =========================================================
   PASSWORD REQUIREMENT
   ========================================================= */

.password-requirement {
    margin-top: 7px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.4;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .password-page {
        padding: 20px 14px;

        align-items: flex-start;
        padding-top: 30px;
    }

    .password-card {
        padding: 32px 24px;

        border-radius: 15px;
    }

    .password-logo {
        margin-bottom: 22px;
    }

    .password-logo img {
        width: 155px;
    }

    .password-card h1 {
        font-size: 25px;
    }

    .password-description {
        font-size: 14px;
    }

}