body.reset-password-page {
    background:
        radial-gradient(circle at top right, rgba(74, 100, 145, 0.16), transparent 32%),
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

body.reset-password-page .login-container {
    position: relative;
}

body.reset-password-page .welcome-panel {
    position: relative;
    overflow: hidden;
}

body.reset-password-page .welcome-panel::after {
    content: '';
    position: absolute;
    inset: auto -12% -18% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

body.reset-password-page .security-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #eef3fb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.reset-password-page .welcome-content h1 {
    display: block;
    margin-bottom: 16px;
    line-height: 1.15;
}

body.reset-password-page .reset-card {
    justify-content: flex-start;
    gap: 0;
}

body.reset-password-page .brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}

body.reset-password-page .reset-brand-logo {
    width: 64px;
    max-width: none;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

body.reset-password-page .brand-lockup-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

body.reset-password-page .brand-lockup-copy strong {
    color: #20324d;
    font-size: 1.35rem;
    font-weight: 800;
}

body.reset-password-page .logo {
    margin-bottom: 18px;
}

body.reset-password-page .logo h2 {
    font-size: 1.85rem;
}

body.reset-password-page .logo p {
    margin-top: 6px;
    line-height: 1.55;
}

body.reset-password-page .section-note,
body.reset-password-page .helper-note {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

body.reset-password-page .section-note {
    margin-bottom: 18px;
}

body.reset-password-page .helper-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dbe7f6;
    background: #f8fbff;
}

body.reset-password-page .token-email {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #e8f4ff 0%, #f2f8ff 100%);
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

body.reset-password-page #resetCode {
    text-align: center;
    letter-spacing: 0.32em;
    font-size: 1.12rem;
    font-weight: 800;
    font-family: 'Consolas', 'Courier New', monospace;
}

body.reset-password-page .code-input-wrap {
    grid-template-columns: 1fr auto;
}

body.reset-password-page .code-helper {
    margin: 8px 2px 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.reset-password-page .password-assistant {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbe7f6;
    background: #f8fbff;
}

body.reset-password-page .password-assistant-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body.reset-password-page .password-assistant-header h3 {
    margin: 0 0 4px;
    color: #20324d;
    font-size: 1rem;
}

body.reset-password-page .password-assistant-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

body.reset-password-page .password-assistant-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body.reset-password-page .secondary-action-btn,
body.reset-password-page .input-action-btn {
    border: 1px solid #c8d6ea;
    background: #ffffff;
    color: #2f4f75;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.reset-password-page .secondary-action-btn {
    padding: 10px 12px;
    min-height: 42px;
    font-size: 0.84rem;
}

body.reset-password-page .input-action-btn {
    padding: 0 12px;
    min-width: 88px;
    min-height: 46px;
    white-space: nowrap;
}

body.reset-password-page .secondary-action-btn:hover,
body.reset-password-page .input-action-btn:hover {
    background: #eff5fc;
    border-color: #9fb6d6;
    transform: translateY(-1px);
}

body.reset-password-page .compact-group {
    margin-bottom: 0;
}

body.reset-password-page .suggested-password-input {
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.01em;
}

body.reset-password-page .password-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

body.reset-password-page .password-strength {
    margin: -2px 0 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbe7f6;
}

body.reset-password-page .password-strength-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 600;
}

body.reset-password-page .password-strength-row strong {
    color: #1f3b64;
}

body.reset-password-page .password-strength-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dbe7f6;
    overflow: hidden;
}

body.reset-password-page .password-strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 55%, #22c55e 100%);
    transition: width 0.25s ease;
}

body.reset-password-page .password-checklist {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
}

body.reset-password-page .password-checklist li {
    position: relative;
    padding-left: 24px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
}

body.reset-password-page .password-checklist li::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 0;
    color: #94a3b8;
    font-weight: 900;
}

body.reset-password-page .password-checklist li.is-valid {
    color: #166534;
}

body.reset-password-page .password-checklist li.is-valid::before {
    content: '✓';
    left: 4px;
    color: #16a34a;
}

body.reset-password-page .password-match {
    min-height: 20px;
    margin: -2px 0 18px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

body.reset-password-page .password-match.ok {
    color: #166534;
}

body.reset-password-page .password-match.error {
    color: #b91c1c;
}

body.reset-password-page .dev-info {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed #f59e0b;
    background: #fff8e7;
    color: #92400e;
    font-size: 0.83rem;
    line-height: 1.5;
}

body.reset-password-page .dev-info a {
    color: #b45309;
    font-weight: 800;
}

body.reset-password-page .login-links {
    margin-top: 16px;
}

@media (max-width: 1080px) {
    body.reset-password-page .brand-lockup {
        padding: 14px;
    }
}

@media (max-width: 760px) {
    body.reset-password-page .brand-lockup {
        align-items: center;
    }

    body.reset-password-page .reset-brand-logo {
        width: 58px;
    }

    body.reset-password-page .password-assistant-header,
    body.reset-password-page .password-input-wrap {
        grid-template-columns: 1fr;
        display: grid;
    }

    body.reset-password-page .password-assistant-actions {
        justify-content: flex-start;
    }

    body.reset-password-page .input-action-btn {
        width: 100%;
    }

    body.reset-password-page .login-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
