/* Signed-out pages: Sign In, Forgot Password, Reset Password.
   Standalone (no layout), so every rule the pages need lives here. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrap {
    display: flex;
    width: 880px;
    max-width: 95vw;
    min-height: 480px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

/* Left — branding */
.login-brand {
    width: 360px;
    background: #1e3a5f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    color: #fff;
}
.brand-icon {
    width: 64px; height: 64px; border-radius: 14px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: #fff;
    margin-bottom: 18px; letter-spacing: 1px;
}
.brand-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.brand-sub {
    font-size: 13px; color: rgba(255,255,255,0.55);
    text-align: center; line-height: 1.6;
}

/* Right — form */
.login-form {
    flex: 1; background: #fff;
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px 40px;
}
.form-title { font-size: 20px; font-weight: 700; color: #1f2a37; margin-bottom: 4px; }
.form-sub { font-size: 13px; color: #64748b; margin-bottom: 26px; line-height: 1.55; }

.field { margin-bottom: 18px; }
.field-label { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; display: block; }
.field-wrap { position: relative; }
.field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px;
}
.field-input {
    width: 100%; padding: 11px 14px 11px 40px;
    border: 1px solid #d9e2ef; border-radius: 8px;
    font-size: 14px; color: #1f2a37;
    font-family: 'Inter', sans-serif; outline: none;
    transition: border .2s;
}
.field-input:focus { border-color: #1e3a5f; box-shadow: 0 0 0 3px rgba(30,58,95,0.08); }
.field-input::placeholder { color: #b0bec5; }
.field-input[readonly] { background: #f8fafc; color: #64748b; }

.toggle-pw {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 14px;
}
.toggle-pw:hover { color: #64748b; }

.options-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
}
.remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; cursor: pointer; }
.remember input { cursor: pointer; accent-color: #1e3a5f; }
.forgot { font-size: 13px; color: #1e3a5f; font-weight: 600; text-decoration: none; }
.forgot:hover { text-decoration: underline; }

.btn-login {
    display: block; text-align: center; text-decoration: none;
    width: 100%; padding: 12px; background: #1e3a5f; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all .2s;
}
.btn-login:hover { background: #2a4d7a; }
.btn-login:active { transform: scale(0.98); }

.error-box {
    color: #dc2626; font-size: 12px; margin-bottom: 14px;
    background: #fef2f2; padding: 10px 14px; border-radius: 8px;
    border: 1px solid #fecaca;
}
.error-box ul { margin: 0; padding-left: 16px; }

/* Result panels — pastel, per the modal palette */
.note-box {
    font-size: 13px; line-height: 1.6; color: #334155;
    padding: 12px 14px; border-radius: 8px; margin-bottom: 20px;
    background: #f7faff; border: 1px solid #dbeafe;
}
.note-box.good { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.note-box.warn { background: #fef9c3; border-color: #fde68a; color: #92400e; }
.note-box b { font-weight: 600; }

.pw-hint { font-size: 11.5px; color: #94a3b8; margin-top: 6px; line-height: 1.5; }

.back-link {
    display: inline-block; margin-top: 18px; font-size: 13px;
    color: #64748b; text-decoration: none; text-align: center; width: 100%;
}
.back-link:hover { color: #1e3a5f; text-decoration: underline; }

/* Two-step sign-in code */
.code-input { font-family: ui-monospace, Menlo, monospace; font-size: 20px; letter-spacing: 6px; }
.resend-form { margin-top: 14px; text-align: center; }
.link-btn {
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #1e3a5f;
}
.link-btn:hover { text-decoration: underline; }

.footer { margin-top: 28px; font-size: 11px; color: #94a3b8; text-align: center; }

.text-danger { color: #dc2626; font-size: 11px; margin-top: 4px; display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 768px) {
    .login-brand { display: none; }
    .login-wrap { border-radius: 0; max-width: 100vw; min-height: 100vh; }
    .login-form { padding: 36px 20px; }
}
