/* Premium tenant authentication shared by login, registration and recovery. */
:root {
    --auth-ink: #101828;
    --auth-copy: #344054;
    --auth-muted: #667085;
    --auth-border: #e4e7ec;
    --auth-canvas: #f6f7fb;
    --auth-shadow: 0 28px 80px rgba(16, 24, 40, .13);
}

html,
body.premium-auth,
.auth-app { min-height: 100%; }

body.premium-auth {
    margin: 0;
    color: var(--auth-copy);
    background: var(--auth-canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -.006em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.premium-auth a { color: var(--auth-ink); }
.premium-auth a:hover { color: var(--auth-accent); text-decoration: none; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, .82fr) minmax(620px, 1.18fr);
    background: #fff;
}

.auth-story {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 4vw, 68px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, rgba(16, 24, 40, .97), rgba(25, 40, 61, .94)), #101828;
}

.auth-story::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.auth-story::after {
    position: absolute;
    right: -15%;
    bottom: 14%;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.auth-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.auth-orb-one { top: 18%; right: -8%; width: 330px; height: 330px; opacity: .34; background: var(--auth-accent); filter: blur(28px); }
.auth-orb-two { left: -110px; bottom: -120px; width: 290px; height: 290px; opacity: .12; background: #fff; filter: blur(24px); }
.auth-brand,
.auth-story-content,
.auth-story-footer { position: relative; z-index: 2; }

.auth-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 13px; color: #fff !important; }
.auth-logo-frame {
    width: 56px;
    height: 56px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.auth-logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand strong,
.auth-brand small { display: block; }
.auth-brand strong { max-width: 250px; overflow: hidden; color: #fff; font-size: 16px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.auth-brand small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.auth-story-content { max-width: 610px; margin: auto 0; padding: 70px 0; }
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.07);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.auth-kicker i { color: var(--auth-accent); }
.auth-story h1 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(43px, 5vw, 72px); font-weight: 900; letter-spacing: -.06em; line-height: .98; }
.auth-story-content > p { max-width: 550px; margin: 25px 0 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.75; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.auth-benefits span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.055); font-size: 10px; font-weight: 750; }
.auth-benefits i { color: var(--auth-accent); }
.auth-story-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.46); font-size: 10px; font-weight: 750; }
.auth-story-footer span { display: inline-flex; align-items: center; gap: 8px; }
.auth-story-footer span i { color: #47d7ac; }
.auth-story-footer a { color: rgba(255,255,255,.72); }
.auth-story-footer a i { margin-left: 6px; }

.auth-workspace {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 86px);
    background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--auth-accent) 13%, transparent), transparent 26rem), linear-gradient(180deg, #fbfcfe, #f7f8fb);
}
.auth-mobile-brand { display: none; }
.auth-content { width: 100%; max-width: 880px; margin: auto; }
.auth-content > .alert { margin-bottom: 18px; border: 0; border-radius: 14px; box-shadow: 0 10px 25px rgba(16,24,40,.06); }

.premium-auth .card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--auth-shadow);
}
.premium-auth .card.card-primary { border-top: 1px solid rgba(16,24,40,.08); }
.premium-auth .card::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: linear-gradient(90deg, var(--auth-accent), color-mix(in srgb, var(--auth-accent) 35%, #101828)); }
.premium-auth .card .card-header { min-height: auto; padding: 31px 34px 15px; border: 0; background: transparent; }
.premium-auth .card .card-header h4,
.premium-auth .card .card-header { color: var(--auth-ink); font-size: clamp(24px, 2.5vw, 32px); font-weight: 880; letter-spacing: -.04em; }
.premium-auth .card .card-header h4 { margin: 0; }
.premium-auth .card .card-header h4::after { display: block; margin-top: 9px; color: var(--auth-muted); content: "Secure access to your learning workspace."; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.premium-auth .card .card-body { padding: 18px 34px 34px; }
.premium-auth .card .card-title { color: var(--auth-copy); font-size: 13px; line-height: 1.6; }

.premium-auth .form-group { margin-bottom: 20px; }
.premium-auth .form-group label { margin-bottom: 8px; color: var(--auth-copy); font-size: 11px; font-weight: 800; }
.premium-auth .form-control,
.premium-auth .selectric,
.premium-auth select.form-control { min-height: 52px; border: 1px solid #d8dee8; border-radius: 12px; color: var(--auth-ink); background: #fbfcfd; font-size: 14px; box-shadow: none; }
.premium-auth textarea.form-control { min-height: 105px; }
.premium-auth .form-control:focus { border-color: var(--auth-accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 15%, transparent); }
.premium-auth .custom-control-label { padding-top: 1px; color: var(--auth-muted); font-weight: 600; }
.premium-auth .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--auth-ink); background: var(--auth-ink); }
.premium-auth .invalid-feedback { font-size: 10px; }
.premium-auth .btn { min-height: 50px; border-radius: 12px; font-size: 12px; font-weight: 850; letter-spacing: .015em; }
.premium-auth .btn-primary { color: #fff !important; border-color: #101828 !important; background: #101828 !important; box-shadow: 0 12px 22px rgba(16,24,40,.18); }
.premium-auth .btn-primary:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--auth-accent) 65%, #101828) !important; background: color-mix(in srgb, var(--auth-accent) 25%, #101828) !important; box-shadow: 0 16px 28px rgba(16,24,40,.23); }
.premium-auth .btn-social { border-radius: 11px; }
.premium-auth .text-small { color: var(--auth-muted) !important; font-weight: 700; }
.premium-auth #login-info-box:empty { display: none; }
.premium-auth .card .row > [class*="col-md-"] + [class*="col-md-"] { border-left: 1px solid #edf0f4; }
.premium-auth .card .row > .text-center { display: flex; flex-direction: column; justify-content: center; }
.premium-auth .card .row > .text-center h4 { color: var(--auth-ink); font-size: 21px; font-weight: 850; letter-spacing: -.025em; }
.premium-auth .card .row > .text-center h1 { width: 74px; height: 74px; display: grid; place-items: center; align-self: center; border-radius: 22px; color: var(--auth-ink); background: color-mix(in srgb, var(--auth-accent) 28%, #fff); font-size: 26px; }
.premium-auth .mt-5.text-muted.text-center { margin-top: 22px !important; color: var(--auth-muted) !important; font-size: 11px; font-weight: 650; }
.premium-auth .pwindicator .bar { border-radius: 999px; }
.premium-auth .iti { width: 100%; }
.auth-footer { width: 100%; max-width: 880px; display: flex; justify-content: space-between; gap: 20px; margin: 30px auto 0; color: #98a2b3; font-size: 9px; font-weight: 700; }
.auth-footer a { color: var(--auth-copy); font-weight: 850; }

@media (max-width: 1120px) {
    .auth-shell { grid-template-columns: 360px minmax(0, 1fr); }
    .auth-story { padding: 38px; }
    .auth-story h1 { font-size: 46px; }
    .auth-benefits { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .auth-shell { display: block; }
    .auth-story { display: none; }
    .auth-workspace { min-height: 100vh; padding: 28px 18px; }
    .auth-mobile-brand { display: block; margin: 0 auto 24px; }
    .auth-mobile-brand a { display: flex; align-items: center; justify-content: center; gap: 11px; }
    .auth-mobile-brand img { width: 50px; height: 50px; padding: 4px; border: 1px solid var(--auth-border); border-radius: 14px; object-fit: contain; background: #fff; }
    .auth-mobile-brand strong { max-width: 250px; overflow: hidden; color: var(--auth-ink); font-size: 15px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
    .premium-auth .card { border-radius: 19px; }
    .premium-auth .card .card-header { padding: 26px 22px 12px; }
    .premium-auth .card .card-body { padding: 16px 22px 25px; }
}

@media (max-width: 575px) {
    .premium-auth .card .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    .premium-auth .card .row > [class*="col-md-"] + [class*="col-md-"] { margin-top: 12px; padding-top: 25px !important; border-top: 1px solid #edf0f4; border-left: 0; }
    .premium-auth .card .row > .form-group.col-6 { flex: 0 0 100%; max-width: 100%; }
    .auth-footer { align-items: center; flex-direction: column; gap: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .premium-auth *, .premium-auth *::before, .premium-auth *::after { scroll-behavior: auto !important; transition: none !important; }
}
