/* ------------------------------------------------------------------
   Staff authentication
   A refined split-screen sign-in: an editorial brand panel on the left
   and a focused, high-contrast form card on the right.
   ------------------------------------------------------------------ */
.auth-shell {
    --auth-ink: #122033;
    --auth-muted: #64748b;
    --auth-teal: #0f766e;
    --auth-teal-dark: #0a5c57;
    --auth-line: #cfdae6;
    position: relative;
    min-height: 100vh;
    color: var(--auth-ink);
    background:
        radial-gradient(ellipse at 88% 0%, rgba(13, 148, 136, .12), transparent 34rem),
        radial-gradient(ellipse at 8% 100%, rgba(14, 165, 233, .10), transparent 32rem),
        #f4f7fb;
}

.auth-shell .auth-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.02fr) minmax(480px, .98fr);
    min-height: 100vh;
    min-height: 100svh;
}

/* ---------- Brand panel ------------------------------------------- */
.auth-shell .auth-aside {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(2.5rem, 5.4vw, 5.5rem);
    color: #e6f1f7;
    background:
        radial-gradient(700px 520px at 100% 0%, rgba(45, 212, 191, .17), transparent 65%),
        radial-gradient(620px 520px at 0% 100%, rgba(59, 130, 246, .13), transparent 62%),
        linear-gradient(150deg, #0b1729 0%, #102b40 50%, #0b625d 100%);
}

.auth-shell .auth-aside::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: .75;
    mask-image: radial-gradient(ellipse at 18% 28%, #000 18%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse at 18% 28%, #000 18%, transparent 76%);
}

.auth-shell .auth-aside::after {
    position: absolute;
    right: -21rem;
    bottom: -25rem;
    z-index: -1;
    width: 46rem;
    height: 46rem;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, .24), rgba(59, 130, 246, .08) 46%, transparent 68%);
    pointer-events: none;
}

.auth-shell .auth-aside-inner {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    max-width: 520px;
}

.auth-shell img.auth-logo {
    width: auto;
    max-width: 180px;
    height: 60px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 15px;
    background: #fff;
    padding: 8px 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, .24);
}

.auth-logo-fallback {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(117, 226, 210, .22);
    border-radius: 16px;
    background: rgba(117, 226, 210, .1);
    color: #8af0df;
    font-size: 1.8rem;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    min-width: 0;
}

.auth-brand-copy strong {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.auth-brand-copy small {
    color: rgba(206, 230, 238, .62);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 2.7rem;
    padding: .42rem .82rem;
    border: 1px solid rgba(117, 226, 210, .24);
    border-radius: 999px;
    background: rgba(117, 226, 210, .08);
    color: #8af0df;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-shell .auth-aside h1 {
    max-width: 520px;
    margin: 1.1rem 0 .9rem;
    color: #fff;
    font-size: clamp(2rem, 3.1vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.auth-lead {
    max-width: 510px;
    margin: 0;
    color: rgba(218, 236, 243, .76);
    font-size: .98rem;
    line-height: 1.7;
}

.auth-shell .auth-points {
    display: grid;
    gap: .6rem;
    max-width: 540px;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-shell .auth-points li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
}

.auth-point-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(117, 226, 210, .18);
    border-radius: 11px;
    background: rgba(117, 226, 210, .12);
    color: #8af0df;
    font-size: 1rem;
}

.auth-point-copy {
    display: flex;
    flex-direction: column;
    gap: .16rem;
}

.auth-point-copy strong {
    color: #f1f8fa;
    font-size: .9rem;
    font-weight: 650;
}

.auth-point-copy small {
    color: rgba(206, 230, 238, .64);
    font-size: .78rem;
    line-height: 1.45;
}

.auth-aside-bottom {
    max-width: 540px;
    margin-top: 2.2rem;
}

.auth-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #a7f3d0;
    font-size: .7rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.auth-status i {
    font-size: .95rem;
}

.auth-shell .auth-note {
    max-width: 500px;
    margin: .9rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(206, 230, 238, .58);
    font-size: .76rem;
    line-height: 1.6;
}

/* ---------- Form panel -------------------------------------------- */
.auth-shell .auth-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.auth-shell .auth-panel::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .45;
    mask-image: radial-gradient(ellipse at 58% 42%, #000 8%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at 58% 42%, #000 8%, transparent 68%);
}

.auth-panel-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.1rem;
    color: var(--auth-ink);
}

.auth-mobile-brand img {
    width: auto;
    max-width: 150px;
    height: 44px;
    object-fit: contain;
    padding: 4px 8px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
}

.auth-mobile-brand .auth-logo-fallback {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-color: #cdeee8;
    border-radius: 12px;
    background: #e8f8f5;
    color: var(--auth-teal);
    font-size: 1.35rem;
}

.auth-mobile-brand strong {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
}

.auth-mobile-brand small {
    display: block;
    color: #718096;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-shell .auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    padding: clamp(1.55rem, 3.2vh, 2.35rem) clamp(1.5rem, 3.2vw, 2.4rem) clamp(1.3rem, 2.6vh, 1.85rem);
    border: 1px solid rgba(211, 222, 235, .95);
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 34px 70px -30px rgba(15, 42, 67, .34),
        0 8px 22px -16px rgba(15, 42, 67, .2);
    animation: authCardEnter .5s cubic-bezier(.22, .61, .36, 1) both;
}

.auth-shell .auth-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #0f766e, #0ea5e9 48%, #7c3aed);
}

.auth-card-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
}

.auth-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #cdeee8;
    border-radius: 13px;
    background: linear-gradient(135deg, #e8f8f5, #e0f2fe);
    color: var(--auth-teal);
    font-size: 1.12rem;
}

.auth-card-kicker {
    color: var(--auth-teal);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-card-title {
    margin: 0 0 .4rem;
    color: var(--auth-ink);
    font-size: clamp(1.65rem, 2.4vw, 1.95rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.auth-card-subtitle {
    margin: 0 0 1.55rem;
    color: var(--auth-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.auth-shell .auth-card .form-label {
    margin-bottom: .5rem;
    color: #34445d;
    font-size: .82rem;
    font-weight: 650;
}

.auth-shell .auth-card .input-group {
    border-radius: 12px;
}

.auth-shell .auth-card .input-group-text,
.auth-shell .auth-card .form-control {
    min-height: 3.2rem;
    border-color: var(--auth-line);
    background: #fff;
}

.auth-shell .auth-card .input-group-text {
    padding-inline: .95rem;
    background: #f8fafc;
    color: #748398;
}

.auth-shell .auth-card .input-group-text:first-child {
    border-radius: 12px 0 0 12px;
}

.auth-shell .auth-card .input-group .form-control {
    padding: .7rem .9rem;
    color: #16243a;
    font-size: .95rem;
}

.auth-shell .auth-card .input-group:focus-within {
    border-radius: 12px;
    box-shadow:
        0 0 0 4px rgba(15, 118, 110, .2),
        0 0 24px rgba(15, 118, 110, .28);
}

.auth-shell .auth-card .input-group .form-control:focus {
    position: relative;
    z-index: 3;
    border-color: var(--auth-teal);
    box-shadow: none;
}

.auth-shell .auth-card .input-group:focus-within .input-group-text {
    border-color: var(--auth-teal);
    background: #f0fdfa;
    color: var(--auth-teal);
}

.auth-shell .auth-card .input-group > .btn {
    border-color: var(--auth-line);
    background: #f8fafc;
    color: #66758a;
}

.auth-shell .auth-card .input-group > .btn:hover {
    border-color: #b5c5d6;
    background: #eef4f9;
    color: #334155;
}

.auth-shell .auth-card .input-group > .btn:last-child {
    border-radius: 0 12px 12px 0;
}

.auth-shell .auth-card .btn-teal {
    position: relative;
    overflow: hidden;
    min-height: 3.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(115deg, var(--auth-teal-dark) 0%, #0f8f84 58%, #0ea5a0 100%);
    box-shadow: 0 14px 26px -14px rgba(15, 118, 110, .62);
    color: #fff;
    font-weight: 650;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-shell .auth-card .btn-teal::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .22) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.auth-shell .auth-card .btn-teal:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -14px rgba(15, 118, 110, .66);
}

.auth-shell .auth-card .btn-teal:hover::after {
    transform: translateX(120%);
}

.auth-shell .auth-card .btn-teal:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(15, 118, 110, .22),
        0 14px 26px -14px rgba(15, 118, 110, .62);
}

.auth-shell .auth-card .btn-outline-secondary {
    min-height: 2.9rem;
    border-color: #d6e0e9;
    color: #43536a;
    font-weight: 600;
}

.auth-shell .auth-card .btn-outline-secondary:hover {
    border-color: #b9d7d3;
    background: #f2faf8;
    color: var(--auth-teal-dark);
}

.auth-shell .auth-card hr {
    border-color: #e8edf3;
    opacity: 1;
}

.auth-shell .auth-card .alert {
    border-radius: 12px;
    font-size: .86rem;
    line-height: 1.5;
}

.auth-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
    justify-content: center;
    margin-top: 1.35rem;
    padding-top: 1.05rem;
    border-top: 1px solid #e8eef5;
}

.auth-card-foot span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #7c8da2;
    font-size: .72rem;
    font-weight: 600;
}

.auth-card-foot i {
    color: var(--auth-teal);
}

.auth-shell .auth-footnote {
    max-width: 460px;
    margin: 1.25rem 0 0;
    color: #7c8da2;
    font-size: .75rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Administrator-supplied background -------------------- */
.auth-shell.auth-shell--custom-bg {
    background-color: #0b1729;
    background-image: var(--auth-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-shell.auth-shell--custom-bg .auth-aside {
    background: linear-gradient(150deg, rgba(11, 23, 41, .92), rgba(16, 43, 64, .84) 50%, rgba(11, 98, 93, .76));
}

.auth-shell.auth-shell--custom-bg .auth-panel {
    background: rgba(244, 247, 251, .8);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

/* ---------- Motion & responsive ---------------------------------- */
@keyframes authCardEnter {
    from { opacity: 0; transform: translateY(14px) scale(.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
    .auth-shell .auth-grid { grid-template-columns: 1fr; }
    .auth-shell .auth-aside { display: none; }
    .auth-shell .auth-panel { min-height: 100vh; min-height: 100svh; }
    .auth-mobile-brand { display: flex; }
}

@media (max-width: 575.98px) {
    .auth-shell .auth-panel { padding: 1.1rem; }
    .auth-shell .auth-card { padding: 1.4rem 1.2rem 1.2rem; border-radius: 20px; }
    .auth-card-title { font-size: 1.55rem; }
    .auth-card-subtitle { font-size: .86rem; }
    .auth-card-foot { gap: .45rem .8rem; }
}

@media (max-height: 760px) and (min-width: 961px) {
    .auth-shell .auth-aside { padding-block: 2rem; }
    .auth-eyebrow { margin-top: 1.6rem; }
    .auth-shell .auth-aside h1 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
    .auth-shell .auth-points { gap: .45rem; margin-top: 1.2rem; }
    .auth-shell .auth-points li { padding: .6rem .75rem; }
    .auth-aside-bottom { margin-top: 1.3rem; }
}

@media (max-height: 720px) {
    .auth-shell .auth-panel { padding-block: .8rem; }
    .auth-shell .auth-card { padding-block: 1.15rem; }
    .auth-card-subtitle { margin-bottom: 1.05rem; }
    .auth-card-foot { margin-top: 1rem; padding-top: .85rem; }
    .auth-shell .auth-footnote { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell .auth-card { animation: none; }
    .auth-shell .auth-card .btn-teal,
    .auth-shell .auth-card .btn-teal::after { transition: none; }
}
