/* Staff login page. Everything is scoped under .tt-login so it never touches other pages using auth-layout */
.tt-login {
    --blue: #0a4fb3;
    --ink: #0b1f4b;
    --muted: #5b6b85;
    --line: #d9e0ec;
    --chip: #e8f1ff;
    --note: #f2f5fa;
    --green: #2fbf71;
    --mint: #4ade80;
    --sky: #7fb0ff;
    --orange: #f7931e;
    display: grid;
    grid-template-columns: 52.7778% minmax(0, 1fr);
    min-height: 100vh;
    font-family: "Figtree", system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: auto;
}
.tt-login *, .tt-login *::before, .tt-login *::after { box-sizing: border-box; margin: 0; }
.tt-login h1, .tt-login h2, .tt-login p, .tt-login label, .tt-login button, .tt-login input { font-family: "Figtree", system-ui, sans-serif; }
.tt-login svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tt-login .icon-sprite { position: absolute; }

/* ---------- Left panel ---------- */
.tt-login .hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px 56px 47px;
    color: #fff;
    background: linear-gradient(160deg, #001a45 0%, #003282 60%, #0a4fb3 100%);
}
.tt-login .hero > * { position: relative; }
.tt-login .hero .arc { position: absolute; left: 0; top: 0; width: 760px; height: 860px; pointer-events: none; }

.tt-login .brand { display: flex; align-items: center; gap: 16px; }
.tt-login .brand-card {
    width: 175px; height: 56px;
    display: grid; place-items: center;
    background: #fff; border-radius: 12px;
}
.tt-login .brand-card img { display: block; width: 148px; height: auto; }
.tt-login .brand-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #a9c7ff; }

.tt-login .pill {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    height: 33px; margin-top: 79px; padding: 0 13.5px 0 14px;
    font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
}
.tt-login .pill svg { color: var(--mint); }

.tt-login h1 {
    margin-top: 21px;
    font-size: 52px; line-height: 51px; font-weight: 800; letter-spacing: -.03em;
    color: inherit;
}
.tt-login h1 span { color: var(--sky); display: block; }

.tt-login .lead {
    max-width: 520px; margin-top: 24px;
    font-size: 17px; line-height: 28.5px; font-weight: 400; color: #d3e2ff;
}

.tt-login .workspace {
    margin-top: auto; padding: 22px 22px 24px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
}
.tt-login .ws-head { display: flex; align-items: center; justify-content: space-between; height: 16px; }
.tt-login .ws-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #c9dcff; }
.tt-login .ws-secure { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mint); }
.tt-login .ws-secure i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tt-login .ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.tt-login .tile {
    display: flex; align-items: center; gap: 14px;
    height: 72px; padding: 0 15px;
    background: rgba(0, 20, 70, .42);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
}
.tt-login .tile-ic {
    width: 41px; height: 42px; flex: none;
    display: grid; place-items: center;
    color: #a9c7ff; background: rgba(255, 255, 255, .1); border-radius: 10px;
}
.tt-login .tile-ic.warm { color: #ffb257; background: rgba(247, 147, 30, .18); }
.tt-login .tile b { display: block; font-size: 15px; line-height: 18px; font-weight: 700; }
.tt-login .tile small { display: block; font-size: 13px; line-height: 17px; color: #bcd2fa; }

/* ---------- Right panel ---------- */
.tt-login .auth { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.tt-login .auth-box { width: 420px; max-width: 100%; }
.tt-login .auth-logo { display: block; width: 203px; height: auto; }

.tt-login .auth-head { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.tt-login .auth-badge {
    position: relative; width: 54px; height: 54px; flex: none;
    display: grid; place-items: center;
    color: #fff; background: var(--blue); border-radius: 14px;
}
.tt-login .auth-badge::after {
    content: ""; position: absolute; top: -4px; right: -4px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--green); border: 2px solid #fff;
}
.tt-login h2 { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.tt-login .auth-sub { margin-top: 4px; font-size: 14px; line-height: 18px; color: var(--muted); }

.tt-login .chips { display: flex; gap: 7px; margin-top: 21px; }
.tt-login .chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 12px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
    color: var(--blue); background: var(--chip); border-radius: 999px;
}

.tt-login .field { margin-top: 21px; }
.tt-login form .field:first-of-type { margin-top: 23px; }
.tt-login .field label { display: block; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink); }
.tt-login .control { position: relative; margin-top: 6px; }
.tt-login .control input {
    width: 100%; height: 50px; padding: 0 52px 0 16.5px;
    font-size: 15px; font-weight: 400; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: 0; box-shadow: none;
}
.tt-login .control input:focus { border-color: var(--blue); }
.tt-login .control .suffix {
    position: absolute; top: 50%; right: 15px; transform: translateY(-50%);
    display: grid; place-items: center; padding: 0; border: 0; background: none;
    color: #4a5a78;
}
.tt-login button.suffix { cursor: pointer; }

.tt-login .submit {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 51px; margin-top: 23px;
    font-size: 16.5px; font-weight: 700; color: #fff;
    background: var(--blue); border: 0; border-radius: 10px; cursor: pointer;
}
.tt-login .submit:disabled { opacity: .75; cursor: not-allowed; }

.tt-login .note {
    display: flex; gap: 10px;
    margin-top: 22px; padding: 17px 18px 15px 18px;
    background: var(--note); border-radius: 14px;
}
.tt-login .note svg { color: var(--orange); margin: 1px 3px 0 -2px; }
.tt-login .note b { display: block; font-size: 13px; line-height: 16px; font-weight: 700; }
.tt-login .note p { margin-top: 1px; font-size: 13px; line-height: 20.5px; color: var(--muted); }

/* ---------- OTP verification page ---------- */
.tt-login .otp-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.tt-login .otp-boxes input {
    width: 100%; height: 58px; padding: 0;
    font-size: 24px; font-weight: 700; text-align: center; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: 0; box-shadow: none;
}
.tt-login .otp-boxes input:focus, .tt-login .otp-boxes input.active { border-color: var(--blue); }

.tt-login .otp-resend {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-top: 16px; font-size: 13px; color: var(--muted);
}
.tt-login .otp-timer {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 11px;
    font-weight: 700; color: #c0392b; background: #fdecea; border-radius: 999px;
}
.tt-login .otp-resend a { font-weight: 700; color: var(--blue); text-decoration: none; }
.tt-login .otp-resend a.pointer-none { pointer-events: none; opacity: .5; }

.tt-login .back-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.tt-login .back-link:hover { color: var(--blue); }

/* Below the design's desktop width the two panels stack. */
@media (max-width: 1100px) {
    .tt-login { grid-template-columns: minmax(0, 1fr); }
    .tt-login .hero { padding: 32px 16px; }
    .tt-login .workspace { margin-top: 40px; }
    .tt-login .auth { padding: 40px 16px; }
    .tt-login .chips { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .tt-login h1 { font-size: 36px; line-height: 40px; }
    .tt-login .ws-grid { grid-template-columns: 1fr; }
}
