/*
 * Sign-in pages (login, two-step verification, forgot password, OTP, reset):
 * the placement story on the left, the form on the right. TnP 360 colours.
 * Used by views/includes/_auth_*.php.
 */
:root { --tn-indigo: #402084; --tn-plum: #8b29a3; --tn-orange: #fa5322; --tn-amber: #fd8b03; --tn-ink: #24193d; --tn-muted: #6b6382; --tn-line: #e7e0f1; --tn-tint: #f7f3fc; }
html, body.account-page { min-height: 100%; margin: 0; background: #fff; }
.tn-shell { display: flex; min-height: 100vh; }

/* ------------------------------------------------------------ story */
.tn-story {
    position: relative; flex: 1 1 58%; overflow: hidden; isolation: isolate; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 44px 56px;
    background: linear-gradient(135deg, var(--tn-indigo) 0%, #56208f 48%, var(--tn-plum) 100%);
}
.tn-photos { position: absolute; inset: 0; z-index: -2; }
.tn-photos div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: tnFade 24s infinite; mix-blend-mode: luminosity; }
.tn-photos.has-photos + .tn-veil { background: linear-gradient(135deg, rgba(64, 32, 132, .92), rgba(139, 41, 163, .86)); }
.tn-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px; }
.tn-story::before, .tn-story::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(8px); }
.tn-story::before { width: 520px; height: 520px; right: -170px; top: -200px; background: radial-gradient(circle, rgba(253, 139, 3, .45), rgba(250, 83, 34, .12) 50%, transparent 70%); animation: tnFloat 14s ease-in-out infinite; }
.tn-story::after { width: 420px; height: 420px; left: -160px; bottom: -180px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); animation: tnFloat 18s ease-in-out infinite reverse; }
.tn-brand { display: flex; align-items: center; gap: 12px; }
.tn-logo-badge { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(25, 10, 60, .25); }
.tn-logo-badge img { height: 38px; width: auto; display: block; }
.tn-brand-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.tn-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd2a6; }
.tn-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tn-orange), var(--tn-amber)); }
.tn-headline { margin: 0 0 14px; font-size: clamp(2rem, 3.2vw, 3.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.tn-headline em { font-style: normal; background: linear-gradient(90deg, #ffb27a, var(--tn-amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tn-lead { max-width: 560px; margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .86); }

/* journey */
.tn-journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.tn-journey::before { content: ""; position: absolute; left: 10%; right: 10%; top: 25px; height: 2px; background: rgba(255, 255, 255, .22); }
.tn-journey::after { content: ""; position: absolute; left: 10%; top: 25px; height: 2px; width: 0; background: linear-gradient(90deg, var(--tn-amber), var(--tn-orange)); animation: tnTrack 10s ease-in-out infinite; }
.tn-journey li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tn-journey .tn-dot { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 23px; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
    animation: tnStep 10s infinite; animation-delay: calc(var(--i) * 2s - 2s); }
.tn-journey b { font-size: 13.5px; }
.tn-journey small { font-size: 11.5px; color: rgba(255, 255, 255, .7); }

/* floating cards (decorative) */
.tn-cards { position: relative; height: 150px; max-width: 760px; }
.tn-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 13px; color: var(--tn-ink);
    background: rgba(255, 255, 255, .96); box-shadow: 0 14px 34px rgba(25, 10, 60, .28); animation: tnBob 6s ease-in-out infinite; }
.tn-card i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.tn-card b { display: block; font-size: 13px; }
.tn-card small { color: var(--tn-muted); font-size: 11.5px; }
.tn-card.c1 { left: 0; top: 8px; } .tn-card.c1 i { background: linear-gradient(135deg, var(--tn-indigo), var(--tn-plum)); }
.tn-card.c2 { left: 36%; top: 62px; animation-delay: -2s; } .tn-card.c2 i { background: linear-gradient(135deg, var(--tn-orange), var(--tn-amber)); }
.tn-card.c3 { right: 0; top: 0; animation-delay: -4s; } .tn-card.c3 i { background: linear-gradient(135deg, #1a9a5b, #34c27d); }

.tn-audience { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-audience > span:first-child { margin-right: 4px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.tn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }

/* ------------------------------------------------------------- form */
.tn-form-col { flex: 0 0 460px; max-width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 36px 44px; background: #fff; }
.tn-form-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tn-form-top img { max-width: 170px; height: auto; }
.tn-secure { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #13784a; background: #e7f7ee; }
.tn-form { width: 100%; max-width: 372px; margin: 0 auto; }
.tn-form h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--tn-ink); }
.tn-form .tn-sub { margin: 0 0 24px; font-size: 14px; color: var(--tn-muted); }
.tn-form .tn-sub b { color: var(--tn-indigo); }
.tn-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3a2f52; }
.tn-field { position: relative; }
.tn-field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #9a90ad; pointer-events: none; transition: color .15s; }
.tn-field input { width: 100%; height: 48px; padding: 0 46px 0 44px; border-radius: 12px; border: 1.5px solid #ddd5ea; background: #fcfbfe; font-size: 14.5px; color: var(--tn-ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.tn-field input:hover { border-color: #c4b5dd; }
.tn-field input:focus { outline: 0; border-color: var(--tn-plum); background: #fff; box-shadow: 0 0 0 4px rgba(139, 41, 163, .14); }
.tn-field:focus-within > i { color: var(--tn-plum); }
.tn-field input.is-invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.tn-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #7d7394; font-size: 18px; }
.tn-eye:hover { background: var(--tn-tint); color: var(--tn-plum); }
.tn-eye:focus-visible { outline: 2px solid var(--tn-plum); outline-offset: 1px; }
.tn-hint { min-height: 18px; margin-top: 5px; font-size: 12.5px; }
.tn-hint.is-err { color: #d63939; }
.tn-caps { display: none; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #a4400f; background: #fff1e8; }
.tn-caps.is-on { display: inline-flex; }
.tn-submit { position: relative; width: 100%; height: 50px; margin-top: 6px; border-radius: 12px !important; font-size: 15.5px !important; letter-spacing: .01em;
    box-shadow: 0 10px 22px rgba(250, 83, 34, .3); transition: transform .15s, box-shadow .15s; }
.tn-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(250, 83, 34, .36); }
.tn-submit .tn-spin { display: none; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: tnSpin .7s linear infinite; }
.tn-submit.is-busy { pointer-events: none; }
.tn-submit.is-busy .tn-spin { display: inline-block; }
.tn-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; }
.tn-alert i { font-size: 18px; margin-top: 1px; }
.tn-alert.is-err { color: #8f1d15; background: #fdecec; border: 1px solid #f7c6c6; }
.tn-alert.is-ok { color: #13784a; background: #e7f7ee; border: 1px solid #bfe8d1; }
.tn-alert.is-warn { color: #7a3410; background: #fff4ec; border: 1px solid #fdd3b8; }
.tn-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12.5px; color: var(--tn-muted); }
.tn-or::before, .tn-or::after { content: ""; flex: 1; height: 1px; background: var(--tn-line); }
.tn-sso { width: 100%; height: 46px; border-radius: 12px !important; }
.tn-help { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--tn-tint); border: 1px solid var(--tn-line); }
.tn-help b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tn-indigo); }
.tn-help ul { margin: 8px 0 0; padding: 0; list-style: none; }
.tn-help li { display: flex; gap: 8px; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: #4a4063; }
.tn-help li i { color: var(--tn-plum); margin-top: 2px; }
.tn-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--tn-muted); }

/* small screens: a compact band above the form */
.tn-band { display: none; }
@media (max-width: 1199.98px) { .tn-story { padding: 36px 40px; } .tn-cards { display: none; } .tn-form-col { flex-basis: 420px; padding: 32px 36px; } }
@media (max-width: 991.98px) {
    .tn-story { display: none; }
    .tn-form-col { flex: 1 1 auto; padding: 0 0 24px; }
    .tn-form-top { display: none; }
    .tn-band { display: block; position: relative; overflow: hidden; padding: 26px 22px 54px; color: #fff; background: linear-gradient(135deg, var(--tn-indigo), var(--tn-plum)); }
    .tn-band::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 139, 3, .45), transparent 70%); }
    .tn-band .tn-logo-badge { position: relative; z-index: 1; padding: 6px 12px; } .tn-band .tn-logo-badge img { height: 32px; }
    .tn-band h2 { margin: 16px 0 4px; font-size: 22px; font-weight: 800; color: #fff; }
    .tn-band p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
    .tn-form { position: relative; margin-top: -30px; padding: 24px 22px; max-width: 480px; border-radius: 20px 20px 0 0; background: #fff; }
    .tn-foot { padding: 0 22px; justify-content: center; text-align: center; }
}

@keyframes tnFade { 0% { opacity: 0; } 4%, 30% { opacity: .55; } 34%, 100% { opacity: 0; } }
@keyframes tnFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 18px); } }
@keyframes tnBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tnTrack { 0% { width: 0; } 80%, 100% { width: 80%; } }
@keyframes tnStep { 0%, 4% { background: rgba(255, 255, 255, .12); transform: none; }
    8%, 18% { background: linear-gradient(135deg, var(--tn-orange), var(--tn-amber)); border-color: transparent; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(250, 83, 34, .45); }
    24%, 100% { background: rgba(255, 255, 255, .2); transform: none; } }
@keyframes tnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .tn-story::before, .tn-story::after, .tn-card, .tn-journey .tn-dot, .tn-journey::after, .tn-photos div { animation: none !important; }
    .tn-photos div:first-child { opacity: .5; }
    .tn-journey::after { width: 80%; }
    .tn-submit:hover { transform: none; }
}
    
/* ------------------------------------------- shared by the other sign-in pages */
.tn-page-ic { width: 54px; height: 54px; margin-bottom: 16px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #fff;
    background: linear-gradient(135deg, var(--tn-orange), var(--tn-amber)); box-shadow: 0 10px 22px rgba(250, 83, 34, .3); }
.tn-page-ic.is-purple { background: linear-gradient(135deg, var(--tn-indigo), var(--tn-plum)); box-shadow: 0 10px 22px rgba(64, 32, 132, .28); }
.tn-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.tn-steps li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #9a90ad; }
.tn-steps li:not(:last-child)::after { content: ""; width: 22px; height: 2px; margin-left: 2px; border-radius: 2px; background: var(--tn-line); }
.tn-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #9a90ad; background: #f1eef6; }
.tn-steps li.is-done { color: #13784a; } .tn-steps li.is-done b { color: #fff; background: #1a9a5b; }
.tn-steps li.is-done:not(:last-child)::after { background: #9fdcbd; }
.tn-steps li.is-on { color: var(--tn-indigo); } .tn-steps li.is-on b { color: #fff; background: linear-gradient(135deg, var(--tn-orange), var(--tn-amber)); }
.tn-field input.tn-code { padding: 0 16px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.tn-field input.tn-code::placeholder { letter-spacing: .35em; color: #cfc7dc; }
.tn-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 13px; }
.tn-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--tn-plum); }
.tn-links a:hover { color: var(--tn-indigo); text-decoration: underline; }
.tn-tip { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: #4a4063; background: var(--tn-tint); border: 1px solid var(--tn-line); }
.tn-tip i { font-size: 17px; color: var(--tn-plum); margin-top: 1px; }
.tn-rules { margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--tn-tint); border: 1px solid var(--tn-line); }
.tn-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px; }
.tn-meter span { height: 5px; border-radius: 5px; background: #e3dcef; transition: background .2s; }
.tn-meter[data-s="1"] span:nth-child(-n+1) { background: #e5484d; }
.tn-meter[data-s="2"] span:nth-child(-n+2) { background: var(--tn-amber); }
.tn-meter[data-s="3"] span:nth-child(-n+3) { background: #e0b400; }
.tn-meter[data-s="4"] span { background: #1a9a5b; }
.tn-rules-title { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--tn-indigo); margin-bottom: 4px; }
.tn-rules ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin: 0; padding: 0; list-style: none; }
.tn-rules li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tn-muted); transition: color .15s; }
.tn-rules li i { font-size: 15px; color: #c4bad6; }
.tn-rules li.is-ok { color: #13784a; } .tn-rules li.is-ok i { color: #1a9a5b; }
.tn-match { display: none; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.tn-match.is-ok { display: inline-flex; color: #13784a; } .tn-match.is-bad { display: inline-flex; color: #d63939; }
@media (max-width: 420px) { .tn-rules ul { grid-template-columns: 1fr; } .tn-steps li span { display: none; } }
.tn-field input.tn-code.is-recovery, .tn-field input.tn-code.is-recovery::placeholder { letter-spacing: .1em; font-size: 20px; }

/* ---- desktop: always exactly one screen tall, no page scroll ------------- */
@media (min-width: 992px) {
    html, body.account-page { height: 100%; overflow: hidden; }
    .tn-shell { height: 100vh; height: 100dvh; min-height: 0; }
    .tn-story { height: 100%; gap: clamp(14px, 3vh, 28px); padding-top: clamp(22px, 5vh, 44px); padding-bottom: clamp(22px, 5vh, 44px); }
    /* the form column scrolls on its own only if a very short window leaves no choice */
    .tn-form-col { height: 100%; overflow-y: auto; gap: clamp(12px, 3vh, 24px); padding-top: clamp(18px, 4.5vh, 36px); padding-bottom: clamp(14px, 3vh, 24px); }
    .tn-form { margin-block: auto; }
}
/* shorter laptop screens: decorative cards go first, then spacing tightens */
@media (min-width: 992px) and (max-height: 860px) {
    .tn-cards { display: none; }
    .tn-headline { font-size: clamp(1.8rem, 2.7vw, 2.6rem); margin-bottom: 10px; }
    .tn-lead { font-size: 15px; }
    .tn-eyebrow { margin-bottom: 10px; }
}
@media (min-width: 992px) and (max-height: 700px) {
    .tn-brand .tn-logo-badge img { height: 32px; }
    .tn-headline { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
    .tn-lead { font-size: 14px; line-height: 1.5; }
    .tn-journey .tn-dot { width: 44px; height: 44px; font-size: 20px; border-radius: 13px; }
    .tn-journey::before, .tn-journey::after { top: 21px; }
    .tn-journey small { display: none; }
    .tn-form h1 { font-size: 24px; }
    .tn-form .tn-sub { margin-bottom: 16px; }
    .tn-field input { height: 44px; }
    .tn-submit { height: 46px; }
    .tn-page-ic { width: 46px; height: 46px; font-size: 22px; margin-bottom: 10px; }
    .tn-steps { margin-bottom: 14px; }
}
@media (min-width: 992px) and (max-height: 600px) {
    .tn-audience, .tn-lead { display: none; }
}
@media (min-width: 992px) and (max-height: 860px) {
    .tn-page-ic { display: none; }
    .tn-tip { margin-top: 12px; padding: 9px 12px; font-size: 12px; }
    .tn-links { margin-top: 12px; }
    .tn-form .tn-sub { margin-bottom: 16px; }
    .tn-steps { margin-bottom: 14px; }
    .tn-rules { padding: 9px 12px; }
}
@media (min-width: 992px) and (max-height: 760px) {
    .tn-foot { font-size: 11.5px; }
    .tn-hint { min-height: 14px; margin-top: 3px; }
}

/* The logo sits only at the top-right of the form side (desktop) and the
   top-right of the purple band (phones); the left panel carries no logo. */
.tn-form-top { justify-content: space-between; }
.tn-form-top img { margin-left: auto; }
.tn-brand-pill { display: inline-flex; align-items: center; padding: 6px 14px; font-size: 13px; }
@media (max-width: 991.98px) {
    .tn-band { display: flex; flex-direction: column; }
    .tn-band .tn-logo-badge { align-self: flex-end; }
    .tn-band h2 { margin-top: 10px; }
}
@media (min-width: 992px) and (max-height: 760px) {
    .tn-form-top img { max-width: 140px; }
}

/* "Forgot Password?" on the Password label line (login page). */
.tn-forgot { font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--tn-plum); }
.tn-forgot:hover { color: var(--tn-indigo); text-decoration: underline; }
.tn-forgot:focus-visible { outline: 2px solid var(--tn-plum); outline-offset: 2px; border-radius: 4px; }

/* ======================================================= right section v2
   Tinted backdrop, the form in an elevated card with a brand-gradient edge,
   a time-of-day greeting and a security row. Shared by all sign-in pages. */
.tn-form-col {
    position: relative; isolation: isolate;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 41, 163, .13), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(250, 83, 34, .10), transparent 40%),
        #f8f6fc;
}
.tn-form-col::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(64, 32, 132, .10) 1px, transparent 1px); background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 35%, transparent 70%, #000 100%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 35%, transparent 70%, #000 100%);
}
.tn-secure { background: #fff; border: 1px solid #cfeedd; }
.tn-form-top img { filter: drop-shadow(0 2px 6px rgba(64, 32, 132, .12)); }
@media (min-width: 992px) {
    .tn-form-col { flex-basis: 480px; }
    .tn-form {
        position: relative; overflow: hidden; max-width: 400px;
        padding: 30px 30px 24px; border-radius: 22px; background: #fff; border: 1px solid #ebe5f4;
        box-shadow: 0 1px 2px rgba(36, 25, 61, .04), 0 22px 48px rgba(64, 32, 132, .12);
        animation: tnRise .5s cubic-bezier(.2, .7, .2, 1) both;
    }
    .tn-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--tn-indigo), var(--tn-plum), var(--tn-orange), var(--tn-amber)); }
}
.tn-hello {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: var(--tn-plum); background: var(--tn-tint); border: 1px solid #e6dcf3;
}
.tn-hello i { font-size: 15px; color: var(--tn-amber); }
.tn-form h1 { font-size: 30px; }
.tn-form h1::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--tn-orange), var(--tn-amber)); }
.tn-form .tn-sub { margin-top: 10px; }
.tn-field input { background: #faf8fd; }
.tn-field input:focus { background: #fff; }
.tn-trust { display: flex; justify-content: space-between; gap: 8px; margin: 20px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px dashed #e3dcef; }
.tn-trust li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--tn-muted); }
.tn-trust span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--tn-plum); background: var(--tn-tint); }
.tn-foot { justify-content: center; text-align: center; gap: 4px 14px; }
@keyframes tnRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tn-form { animation: none !important; } }
@media (min-width: 992px) and (max-height: 860px) {
    .tn-form { padding: 24px 26px 20px; }
    .tn-hello { margin-bottom: 8px; }
    .tn-form h1::after { margin-top: 8px; }
    .tn-trust { margin-top: 14px; padding-top: 12px; }
}
@media (min-width: 992px) and (max-height: 700px) {
    .tn-trust span { display: none; }
    .tn-trust { padding-top: 10px; margin-top: 12px; }
    .tn-form h1::after { display: none; }
}
@media (max-width: 991.98px) {
    .tn-form { margin: -30px 12px 0; width: auto; padding: 24px 20px; border-radius: 20px; box-shadow: 0 14px 34px rgba(64, 32, 132, .14); border: 1px solid #ebe5f4; }
    .tn-foot { margin-top: 4px; }
}
.tn-form-col:has(.tn-trust) .tn-foot-note { display: none; }  /* the security row already says it */
.tn-steps { gap: 4px; } .tn-steps li { white-space: nowrap; font-size: 11.5px; } .tn-steps li:not(:last-child)::after { width: 14px; }

/* ======================================================= right section v3
   "Placement Pass": the login card as a campus ID / admit card. A slowly
   turning brand-gradient border (all sign-in cards), an outlined "360"
   watermark behind it, and on the login page a pass header with a lanyard
   slot, a pass photo that follows "I am a ...", and a perforated stub. */
@property --tn-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tn-form-col {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='260'%3E%3Ctext x='4' y='228' font-family='Arial Black,Arial,sans-serif' font-weight='900' font-size='250' fill='none' stroke='%23402084' stroke-opacity='.075' stroke-width='2.5'%3E360%3C/text%3E%3C/svg%3E") no-repeat right -36px bottom -22px,
        radial-gradient(circle at 100% 0%, rgba(139, 41, 163, .14), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(250, 83, 34, .11), transparent 40%),
        #f7f4fb;
}
@media (min-width: 992px) {
    .tn-form {
        border: 2px solid transparent;
        background: linear-gradient(#fff, #fff) padding-box,
                    conic-gradient(from var(--tn-a), rgba(64, 32, 132, .55), rgba(139, 41, 163, .55), rgba(250, 83, 34, .7), rgba(253, 139, 3, .6), rgba(139, 41, 163, .4), rgba(64, 32, 132, .55)) border-box;
        animation: tnRise .5s cubic-bezier(.2, .7, .2, 1) both, tnTurn 9s linear infinite;
    }
}
@keyframes tnTurn { to { --tn-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .tn-form { animation: none !important; } }

/* --- the pass (login page) --- */
.tn-pass { --pp: 26px; overflow: visible; padding: 0 var(--pp) 14px !important; }
.tn-pass::before { display: none; }
.tn-pass-head {
    position: relative; overflow: hidden; margin: 0 calc(var(--pp) * -1); height: 66px; padding: 18px 18px 0;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    color: #fff; border-radius: 20px 20px 0 0;
    background: linear-gradient(120deg, var(--tn-indigo) 0%, #6a2596 55%, var(--tn-plum) 100%);
}
.tn-pass-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px); }
.tn-pass-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(253, 139, 3, .55), transparent 68%); }
.tn-pass-slot { position: absolute; top: 8px; left: 50%; width: 52px; height: 8px; margin-left: -26px; border-radius: 6px; z-index: 1;
    background: #f7f4fb; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.tn-pass-tag, .tn-pass-hello { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; }
.tn-pass-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tn-pass-tag i { font-size: 15px; color: #ffd2a6; }
.tn-pass-hello { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.tn-pass-hello i { font-size: 14px; color: #ffd2a6; }
.tn-pass-id { position: relative; display: flex; align-items: flex-end; gap: 14px; margin: -24px 0 14px; }
.tn-pass-photo {
    flex: 0 0 auto; width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; color: #fff;
    background: linear-gradient(135deg, var(--tn-orange), var(--tn-amber)); border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(250, 83, 34, .35);
}
.tn-pass-photo.is-pop { animation: tnPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tnPop { 0% { transform: scale(.75) rotate(-10deg); } 100% { transform: none; } }
.tn-pass-who { min-width: 0; padding-bottom: 2px; }
.tn-pass .tn-pass-who h1 { margin: 0; font-size: 25px; line-height: 1.15; }
.tn-pass .tn-pass-who h1::after { display: none; }
.tn-pass-line { margin: 3px 0 0; font-size: 12.5px; color: var(--tn-muted); }
.tn-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 14px; background: var(--tn-tint); border: 1px solid #ebe3f5; }
.tn-roles button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border: 0; border-radius: 10px;
    font-size: 11px; font-weight: 700; color: var(--tn-muted); background: transparent; transition: background .15s, color .15s, box-shadow .15s;
}
.tn-roles button i { font-size: 18px; color: #a598bd; transition: color .15s, transform .2s; }
.tn-roles button:hover { color: var(--tn-indigo); }
.tn-roles button:hover i { color: var(--tn-plum); transform: translateY(-1px); }
.tn-roles button.is-on { color: var(--tn-indigo); background: #fff; box-shadow: 0 4px 12px rgba(64, 32, 132, .14); }
.tn-roles button.is-on i { color: var(--tn-orange); }
.tn-roles button:focus-visible { outline: 2px solid var(--tn-plum); outline-offset: 1px; }
.tn-perf { position: relative; height: 22px; margin: 14px calc(var(--pp) * -1 - 2px) 0; }
.tn-perf::before { content: ""; position: absolute; left: 20px; right: 20px; top: 10px; border-top: 2px dashed #e1d8ee; }
.tn-perf::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 0 50%, #f7f4fb 10px, transparent 10.5px), radial-gradient(circle at 100% 50%, #f7f4fb 10px, transparent 10.5px); }
.tn-pass .tn-trust { margin-top: 2px; padding-top: 4px; border-top: 0; }
@media (min-width: 992px) and (max-height: 860px) {
    .tn-pass-head { height: 58px; padding-top: 16px; }
    .tn-pass-id { margin: -22px 0 10px; }
    .tn-pass-photo { width: 58px; height: 58px; font-size: 28px; border-radius: 16px; }
    .tn-roles { margin-bottom: 10px; }
    .tn-perf { margin-top: 10px; }
}
@media (min-width: 992px) and (max-height: 700px) {
    .tn-roles button i { display: none; }
    .tn-roles button { padding: 8px 2px; }
    .tn-pass-line { display: none; }
    .tn-pass .tn-trust span { display: none; }
}
@media (max-width: 991.98px) {
    .tn-pass { --pp: 20px; }
    .tn-perf::after { background: radial-gradient(circle at 0 50%, #f7f4fb 10px, transparent 10.5px), radial-gradient(circle at 100% 50%, #f7f4fb 10px, transparent 10.5px); }
}
@media (max-width: 380px) { .tn-roles button { font-size: 10.5px; } }
/* pass: only the photo overlaps the header; the heading sits below it */
.tn-pass-id { align-items: flex-start; margin: 10px 0 14px; }
.tn-pass-photo { margin-top: -38px; }
.tn-pass-who { padding: 0; }
@media (min-width: 992px) and (max-height: 860px) { .tn-pass-id { margin: 8px 0 10px; } .tn-pass-photo { margin-top: -34px; } }
@media (min-width: 992px) and (max-height: 640px) { .tn-pass .tn-perf, .tn-pass .tn-trust { display: none; } .tn-pass { padding-bottom: 18px !important; } }

/* No "360" watermark and no border on the sign-in card (on request). */
.tn-form-col {
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 41, 163, .14), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(250, 83, 34, .11), transparent 40%),
        #f7f4fb;
}
@media (min-width: 992px) {
    .tn-form { border: 0; background: #fff; animation: tnRise .5s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (max-width: 991.98px) { .tn-form { border: 0; } }
/* without a border the stub notches sit right at the card edge */
.tn-perf { margin-left: calc(var(--pp, 26px) * -1); margin-right: calc(var(--pp, 26px) * -1); }

/* ======================================================= right section v4
   Narrower left panel, wider right section, and the form sits directly on
   the right section - no card (on request). */
.tn-form-col {
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 41, 163, .08), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(250, 83, 34, .06), transparent 36%),
        #fff;
}
.tn-form-col::before { opacity: .6; }
.tn-form, .tn-pass {
    background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible;
}
.tn-form::before { display: none !important; }
@media (min-width: 992px) {
    .tn-story { flex: 1 1 auto; }
    .tn-form-col { flex: 0 0 clamp(460px, 42vw, 660px); padding-left: clamp(32px, 4vw, 64px); padding-right: clamp(32px, 4vw, 64px); }
    .tn-form, .tn-pass { max-width: 420px; padding: 0 !important; }
}
.tn-pass-id { margin: 0 0 18px; align-items: center; }
.tn-pass-photo { margin-top: 0; width: 58px; height: 58px; font-size: 28px; border-width: 0; border-radius: 16px; }
.tn-pass .tn-pass-who h1 { font-size: 28px; }
.tn-hello { margin-bottom: 14px; }
.tn-pass .tn-trust { margin-top: 22px; padding-top: 16px; border-top: 1px dashed #e3dcef; }
@media (min-width: 992px) and (max-height: 860px) {
    .tn-pass-id { margin: 0 0 12px; }
    .tn-pass-photo { margin-top: 0; width: 52px; height: 52px; font-size: 25px; }
    .tn-hello { margin-bottom: 10px; }
    .tn-pass .tn-trust { margin-top: 14px; padding-top: 12px; }
}
@media (min-width: 992px) and (max-height: 640px) { .tn-pass .tn-trust { display: none; } .tn-hello { display: none; } }
@media (max-width: 991.98px) {
    .tn-form-col { background: #fff; }
    .tn-form, .tn-pass { margin: -26px 0 0 !important; padding: 26px 22px 8px !important; border-radius: 22px 22px 0 0 !important; background: #fff !important; max-width: none; }
}
/* wider left panel: the right section takes about a third of the screen */
@media (min-width: 992px) {
    .tn-form-col { flex: 0 0 clamp(420px, 34vw, 560px); padding-left: clamp(28px, 3vw, 52px); padding-right: clamp(28px, 3vw, 52px); }
}

/* live particle field behind the story (assets/js/auth-particles.js); above the dot veil, below the text */
.tn-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
