/* Navigator's Edge — sign-in screens (login, OTP, forgot / reset password) */
:root {
    --brand: #e8692e;
    --brand-600: #d4561c;
    --navy: #0b1b33;
    --text: #0f1b2d;
    --text-2: #475569;
    --muted: #7b8798;
    --border: #d5dbe6;
    --bg: #f4f6fa;
    --danger: #dc3545;
    --ring: 0 0 0 4px rgba(232, 105, 46, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.auth { min-height: 100vh; }

/* Brand side */
.auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 56px;
    color: #fff;
    background: var(--navy);
    background-image:
        radial-gradient(70% 60% at 100% 0%, rgba(232, 105, 46, .45), transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(37, 99, 235, .35), transparent 60%);
    overflow: hidden;
}
.auth__compass {
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 0 0 60px rgba(255, 255, 255, .025),
        0 0 0 120px rgba(255, 255, 255, .02),
        inset 0 0 0 90px rgba(255, 255, 255, .02);
    background:
        conic-gradient(from 0deg, transparent 0 44deg, rgba(255,255,255,.08) 45deg, transparent 46deg 89deg, rgba(255,255,255,.08) 90deg, transparent 91deg 134deg, rgba(255,255,255,.08) 135deg, transparent 136deg 179deg, rgba(255,255,255,.08) 180deg, transparent 181deg 224deg, rgba(255,255,255,.08) 225deg, transparent 226deg 269deg, rgba(255,255,255,.08) 270deg, transparent 271deg 314deg, rgba(255,255,255,.08) 315deg, transparent 316deg);
    animation: spin 160s linear infinite;
    pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth__compass { animation: none; } }

.auth__brand-top { position: relative; display: flex; align-items: center; gap: 12px; }
.auth__mark { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.auth__mark img { width: 40px; height: 40px; object-fit: contain; }
.auth__brand-name { font-weight: 800; font-size: 17px; line-height: 1.15; }
.auth__brand-name small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb48a; }

.auth__brand-copy { position: relative; max-width: 480px; }
.auth__eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.auth__brand-copy h2 { margin: 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.auth__brand-copy h2 span { color: #ff9a62; }
.auth__brand-copy p { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }

.auth__points { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth__points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.auth__points span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 12px; color: #ffb48a; }

/* Form side */
.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 16px; }
.auth__card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e6eaf1;
    box-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 24px 60px -32px rgba(11, 27, 51, .35);
}
.auth__logo { display: flex; justify-content: center; margin: -6px 0 22px; }
.auth__logo img { height: 84px; width: auto; display: block; }
.auth__card h1 { margin: 0; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.auth__lead { margin: 8px 0 26px; text-align: center; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.auth__foot { margin: 0; font-size: 12.5px; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__row a { font-size: 13px; }
.input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9aa5b5; }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.input-wrap button:hover { background: #f1f4f8; color: var(--text); }
.input-wrap button .eye-off { display: none; }
.input-wrap button.is-on .eye { display: none; }
.input-wrap button.is-on .eye-off { display: block; }

.btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    box-shadow: 0 12px 24px -14px rgba(232, 105, 46, .9);
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn svg { display: block; flex-shrink: 0; }
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.btn.is-busy { opacity: .75; cursor: progress; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }

a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.auth__alt { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.notice--error { background: #fdecee; color: #a3202c; border: 1px solid #f7c9cf; }
.notice--success { background: #e7f7f0; color: #0b7a55; border: 1px solid #bfe8d6; }
.notice--info { background: #eaf1ff; color: #1d4ed8; border: 1px solid #c9dafc; }
.field-error { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--danger); }

/* OTP boxes */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 6px 0 22px; }
.otp input {
    width: 100%;
    height: 58px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    caret-color: var(--brand);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.otp input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.otp input.is-filled { background: #fff7f2; border-color: #f7b58f; }
.auth__badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff4ed; color: var(--brand); margin: 0 auto 18px; }

@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth__brand { display: none; }
    .auth__panel { min-height: 100vh; padding: 24px 16px; }
    .auth__card { padding: 28px 22px; border-radius: 20px; }
    .otp { gap: 8px; }
    .otp input { height: 52px; font-size: 22px; }
}
