/* Kodaroom — sign-in & password reset */

.tlc-auth2 { background: #f4f6fa; }
.au-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* Brand side */
.au-brand {
    position: relative; overflow: hidden; color: #fff; padding: 40px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(900px 480px at -10% -10%, #1d2f80 0%, rgba(29, 47, 128, 0) 60%),
                radial-gradient(700px 420px at 110% 110%, rgba(255, 165, 0, .22) 0%, rgba(255, 165, 0, 0) 60%),
                #0b1238;
}
.au-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.au-brand > * { position: relative; z-index: 1; }
.au-brand-top { display: flex; align-items: center; gap: 12px; }
.au-logo { height: 36px; }
.au-wordmark { font-size: 1.3rem; font-weight: 500; }
.au-wordmark b, .au-mobile-brand b { font-weight: 800; }
.au-hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; }
.au-hero h1 span { color: #ffa500; }
.au-hero p { color: #c9d1ee; max-width: 470px; font-size: 1.02rem; }
.au-brand-foot { color: #8f98bd; font-size: .85rem; }
.au-brand-foot i { font-style: normal; color: #ffa500; }

.au-preview { margin-top: 32px; max-width: 470px; border-radius: 16px; background: #121b45; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; transform: rotate(-1.5deg); }
.au-preview-bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; font-size: .78rem; color: #c9d1ee; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.au-live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-weight: 700; }
.au-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.au-rec { margin-left: auto; color: #ff7a7a; font-weight: 700; }
.au-preview-stage { display: grid; grid-template-columns: 1fr 72px; gap: 8px; padding: 10px; }
.au-code { background: #0a1024; border-radius: 10px; padding: 12px; font-family: "JetBrains Mono", monospace; font-size: .74rem; color: #dbe2ff; line-height: 1.8; }
.au-code b { font-weight: 500; }
.au-code .k { color: #93c5fd; } .au-code .f { color: #f9a8d4; } .au-code .s { color: #fcd34d; } .au-code .c { color: #6b7aa8; }
.au-tiles { display: grid; gap: 8px; }
.au-tiles span { border-radius: 8px; background: #24304f; display: flex; align-items: center; justify-content: center; color: #6e7fb1; }
.au-preview-ctl { display: flex; justify-content: center; gap: 18px; padding: 10px; background: #0b1230; color: #c9d1ee; font-size: .9rem; }

/* Form side */
.au-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; gap: 18px; }
.au-card { width: min(440px, 100%); background: #fff; border: 1px solid #e3e7ef; border-radius: 20px; padding: 36px 36px 28px; box-shadow: 0 10px 40px rgba(10, 16, 51, .08); }
.au-mobile-brand { display: none; font-size: 1.15rem; color: #000080; margin-bottom: 18px; }
.au-title { font-size: 1.55rem; font-weight: 800; color: #0a1033; letter-spacing: -.02em; margin: 0 0 6px; }
.au-sub { color: #5d6680; margin-bottom: 24px; font-size: .95rem; }
.au-icon { width: 54px; height: 54px; border-radius: 16px; background: #eef0fb; color: #000080; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 18px; }
.au-icon-warn { background: #fff4de; color: #8a5a00; }

.au-field { margin-bottom: 18px; }
.au-field label { font-weight: 600; font-size: .85rem; color: #0a1033; margin-bottom: 6px; display: inline-block; }
.au-input { position: relative; display: flex; align-items: center; }
.au-input > i { position: absolute; left: 15px; color: #8a93ad; font-size: .95rem; pointer-events: none; }
.au-input input {
    width: 100%; height: 50px; padding: 0 46px 0 44px; border: 1.5px solid #dde2ee; border-radius: 12px; font-size: .97rem;
    background: #fbfcfe; transition: border-color .15s, box-shadow .15s, background .15s;
}
.au-input input:focus { outline: none; border-color: #000080; background: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 128, .1); }
.au-input input:focus + .au-eye, .au-input:focus-within > i { color: #000080; }
.au-eye { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: #8a93ad; }
.au-eye:hover { background: #f0f2f8; color: #000080; }
.au-hint { font-size: .8rem; margin-top: 6px; color: #5d6680; min-height: 0; }
.au-hint-warn { color: #8a5a00; }
.au-hint.ok { color: #137a3f; } .au-hint.bad { color: #b42318; }

.au-btn {
    position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 12px;
    background: #000080; color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s;
    box-shadow: 0 6px 16px rgba(0, 0, 128, .22);
}
.au-btn:hover { background: #00006a; color: #fff; }
.au-btn:active { transform: translateY(1px); }
.au-btn:disabled { background: #a7accf; box-shadow: none; cursor: not-allowed; }
.au-btn-ghost { background: #fff; color: #0a1033; border: 1.5px solid #dde2ee; box-shadow: none; font-weight: 600; }
.au-btn-ghost:hover { background: #f6f7fb; color: #000080; border-color: #000080; }
.au-spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: au-spin .7s linear infinite; }
.au-btn.loading .au-btn-label { display: none; }
.au-btn.loading .au-spinner { display: inline-block; }
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-link { color: #000080; font-weight: 600; text-decoration: none; }
.au-link:hover { text-decoration: underline; }
.au-divider { display: flex; align-items: center; gap: 12px; color: #9aa3bd; font-size: .8rem; margin: 20px 0; }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: #e3e7ef; }
.au-back { display: inline-flex; align-items: center; margin-top: 22px; color: #5d6680; font-weight: 500; text-decoration: none; font-size: .9rem; }
.au-back:hover { color: #000080; }
.au-legal { color: #5d6680; font-size: .85rem; text-align: center; margin: 0; }
.au-legal a { color: #000080; font-weight: 600; }

.au-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: .88rem; margin-bottom: 18px; }
.au-alert i { margin-top: 3px; }
.au-alert-danger { background: #fdecec; color: #8f1d17; }
.au-alert-success { background: #e7f6ee; color: #0f5c30; }
.au-alert-warning { background: #fff4de; color: #7a4f00; }
.au-alert-info { background: #eef3ff; color: #1e3a8a; }
.au-alert code { font-size: .8rem; color: inherit; }

/* Steps */
.au-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; counter-reset: s; }
.au-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .74rem; font-weight: 600; color: #9aa3bd; }
.au-steps li span { height: 4px; border-radius: 4px; background: #e3e7ef; font-size: 0; }
.au-steps li.done span, .au-steps li.current span { background: #000080; }
.au-steps li.current { color: #000080; }
.au-steps li.done { color: #137a3f; }

/* OTP */
.au-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.au-otp input {
    width: 100%; aspect-ratio: 1 / 1.15; max-height: 64px; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 1.6rem; font-weight: 700;
    color: #0a1033; border: 1.5px solid #dde2ee; border-radius: 12px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.au-otp input:focus { outline: none; border-color: #000080; background: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 128, .1); }
.au-otp input.filled { border-color: #000080; background: #fff; }
.au-otp.error input { border-color: #dc3545; animation: au-shake .35s; }
@keyframes au-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .au-otp.error input { animation: none; } }
.au-otp-meta { display: flex; justify-content: center; font-size: .85rem; color: #5d6680; margin-bottom: 18px; }
.au-otp-meta.expired { color: #b42318; }
.au-resend { text-align: center; margin-top: 18px; color: #5d6680; font-size: .9rem; }
.au-link-btn { border: 0; background: transparent; padding: 0; color: #000080; font-weight: 700; }
.au-link-btn:disabled { color: #9aa3bd; font-weight: 600; cursor: default; }
.au-link-btn:not(:disabled):hover { text-decoration: underline; }

/* Strength meter */
.au-strength { margin-top: 8px; }
.au-strength span { display: block; height: 5px; border-radius: 5px; background: #e3e7ef; position: relative; overflow: hidden; }
.au-strength span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, #dc3545); transition: width .2s, background .2s; }
.au-strength small { color: #5d6680; font-size: .75rem; }

@media (max-width: 991.98px) {
    .au-wrap { grid-template-columns: 1fr; }
    .au-brand { display: none; }
    .au-mobile-brand { display: block; }
    .au-panel { justify-content: flex-start; padding-top: 40px; }
}
@media (max-width: 420px) {
    .au-card { padding: 26px 20px 22px; border-radius: 16px; }
    .au-otp { gap: 6px; }
    .au-otp input { font-size: 1.3rem; }
}

.au-wordmark small, .au-mobile-brand small { font-size: .7em; font-weight: 600; opacity: .75; margin-left: 4px; }
