* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f8f9fa;
    color: #1a1a2e;
}

a {
    text-decoration: none;
}

.forgot-page {
    min-height: 100vh;
    padding: 45px 30px 60px;
    background:
        radial-gradient(
            circle at top left,
            rgba(26, 86, 219, 0.05),
            transparent 35%
        ),
        #f8f9fa;
}

.forgot-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #1a56db;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.back-link:hover {
    color: #1341b0;
}

/* Language toggle. Mirrors shared-layout.css; these auth screens load their
   own stylesheet only, so the pill rules are repeated rather than inherited. */

.auth-language-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}

.language-toggle__link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.language-toggle__link:hover,
.language-toggle__link.active {
    color: #1a56db;
}

.language-toggle__divider {
    color: #d0d5dd;
}

.forgot-card {
    width: 100%;
    padding: 38px 42px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.logo-circle {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #1a56db;
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
}

.forgot-card h1 {
    margin-bottom: 8px;
    color: #1a1a2e;
    font-size: 24px;
    font-weight: 700;
}

.subtitle {
    max-width: 350px;
    margin: 0 auto 27px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

#forgotForm {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #cfd6e1;
    border-radius: 7px;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

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

.form-group input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.08);
}

.error-message {
    display: none;
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.4;
}

.error-message.show {
    display: block;
}

.primary-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 7px;
    background: #1a56db;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn:hover {
    background: #1341b0;
}

.primary-btn:active {
    transform: translateY(1px);
}

.signin-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 22px;
    color: #6b7280;
    font-size: 13px;
}

.signin-text a {
    color: #1a56db;
    font-weight: 700;
}

.signin-text a:hover {
    color: #1341b0;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .forgot-page {
        padding: 30px 18px 45px;
    }

    .forgot-container {
        max-width: 100%;
    }

    .forgot-card {
        padding: 32px 25px 34px;
        border-radius: 16px;
    }

    .forgot-card h1 {
        font-size: 22px;
    }

    .subtitle {
        margin-bottom: 24px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .forgot-page {
        padding: 25px 14px 40px;
    }

    .forgot-card {
        padding: 28px 20px 30px;
    }

    .logo-circle {
        width: 54px;
        height: 54px;
    }

    .forgot-card h1 {
        font-size: 21px;
    }

    .signin-text {
        flex-direction: column;
        gap: 3px;
    }
}