/* FIX746 route-scoped module: auth.css */
/* FIX100 - Authentication UI */
.auth-body {
    --auth-navy: #06233f;
    --auth-navy-deep: #031a30;
    --auth-primary: #0d6efd;
    --auth-primary-dark: #0758cf;
    --auth-bg: #f5f7fb;
    --auth-text: #18243d;
    --auth-muted: #73809a;
    --auth-border: #e7ebf3;
    margin: 0;
    min-height: 100vh;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 15% 8%, rgba(13, 110, 253, .09), transparent 24rem),
        radial-gradient(circle at 90% 90%, rgba(6, 35, 63, .07), transparent 25rem),
        var(--auth-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.auth-shell {
    display: grid;
    width: min(1080px, 100%);
    min-height: 650px;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
    overflow: hidden;
    border: 1px solid rgba(219, 226, 238, .95);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(19, 39, 68, .13);
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background:
        radial-gradient(circle at 16% 10%, rgba(13, 110, 253, .52), transparent 34%),
        radial-gradient(circle at 84% 76%, rgba(32, 145, 255, .25), transparent 28%),
        linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-navy-deep) 100%);
}

.auth-visual::before,
.auth-visual::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.auth-visual::before {
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}

.auth-visual::after {
    right: -120px;
    bottom: -150px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 52px rgba(255,255,255,.025),
        0 0 0 104px rgba(255,255,255,.018);
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}

.auth-brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -2px;
}

.auth-brand-mark span:last-child { color: #ff2d3f; }
.auth-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.auth-brand-name { font-size: 14px; font-weight: 760; letter-spacing: .01em; }
.auth-brand-tagline { margin-top: 4px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 500; }

.auth-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 46px 10px 28px;
}

.auth-visual-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.06);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-visual-eyebrow i { color: #70b7ff; font-size: 11px; }

.auth-visual-title {
    max-width: 470px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3vw, 43px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.auth-visual-text {
    max-width: 440px;
    margin: 17px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.75;
}

.auth-network-art {
    position: relative;
    width: min(410px, 100%);
    height: 220px;
    margin: 40px auto 0;
}

.auth-network-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 138px;
    height: 1px;
    background: linear-gradient(90deg, rgba(109,181,255,.08), rgba(109,181,255,.75), rgba(109,181,255,.08));
    transform-origin: left center;
}

.auth-network-line.l1 { transform: rotate(-150deg); }
.auth-network-line.l2 { transform: rotate(-28deg); }
.auth-network-line.l3 { transform: rotate(27deg); }
.auth-network-line.l4 { transform: rotate(151deg); }
.auth-network-line.l5 { width: 106px; transform: rotate(88deg); }

.auth-router {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    width: 108px;
    height: 108px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(145deg, rgba(13,110,253,.96), rgba(5,67,128,.92));
    box-shadow: 0 24px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
    transform: translate(-50%, -50%) rotate(-8deg);
}

.auth-router::before {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    content: "";
}

.auth-router i { position: relative; z-index: 2; font-size: 45px; transform: rotate(8deg); }
.auth-router-dot {
    position: absolute;
    right: 19px;
    bottom: 18px;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: #25d47a;
}

.auth-node {
    position: absolute;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    color: #9ed0ff;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(7px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    font-size: 20px;
}

.auth-node::after {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 10px;
    height: 10px;
    border: 2px solid #05213d;
    border-radius: 50%;
    background: #25d47a;
    content: "";
}

.auth-node.n1 { left: 2%; top: 15%; }
.auth-node.n2 { right: 3%; top: 12%; }
.auth-node.n3 { left: 8%; bottom: 3%; }
.auth-node.n4 { right: 9%; bottom: 1%; }
.auth-node.n5 { left: 50%; bottom: -6%; transform: translateX(-50%); }

.auth-visual-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.48);
    font-size: 10px;
}
.auth-visual-foot i { color: #4fb1ff; }

.auth-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
}

.auth-form-wrap { width: min(390px, 100%); }
.auth-mobile-brand { display: none; }

.auth-heading { margin-bottom: 28px; }
.auth-title {
    margin: 0;
    color: #17233b;
    font-size: 28px;
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.2;
}
.auth-subtitle {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.65;
}

.auth-status {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid #cdeedc;
    border-radius: 10px;
    color: #24704a;
    background: #effbf4;
    font-size: 11px;
    line-height: 1.5;
}
.auth-status i { margin-top: 1px; }

.auth-field { margin-bottom: 16px; }
.auth-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #31405a;
    font-size: 11px;
    font-weight: 650;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;
    color: #8a97aa;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 42px 10px 39px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    outline: none;
    color: var(--auth-text);
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.auth-input::placeholder { color: #abb4c3; font-weight: 400; }
.auth-input:hover { border-color: #cdd6e3; }
.auth-input:focus {
    border-color: rgba(13,110,253,.64);
    box-shadow: 0 0 0 3px rgba(13,110,253,.10);
    background: #fff;
}
.auth-input.is-invalid { border-color: #dc6671; box-shadow: 0 0 0 3px rgba(220,53,69,.07); }

.auth-password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #8996a8;
    background: transparent;
    transform: translateY(-50%);
}
.auth-password-toggle:hover { color: #31405a; background: #f4f6f9; }

.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 6px;
    color: #c43645;
    font-size: 10.5px;
    line-height: 1.4;
}
.auth-error i { margin-top: 1px; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 3px 0 21px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5b687e;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}
.auth-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    border: 1px solid #ccd4e0;
    border-radius: 4px;
    accent-color: var(--auth-primary);
}

.auth-link {
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}
.auth-link:hover { color: var(--auth-primary-dark); text-decoration: underline; }

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #087cf0 100%);
    box-shadow: 0 10px 22px rgba(13,110,253,.20);
    font-size: 12px;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.auth-submit:hover { filter: brightness(.98); box-shadow: 0 13px 27px rgba(13,110,253,.25); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }

.auth-secondary-action {
    margin: 22px 0 0;
    color: #7a879b;
    font-size: 11px;
    text-align: center;
}
.auth-secondary-action .auth-link { margin-left: 3px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 21px 0 18px;
    color: #a1abba;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { height: 1px; flex: 1; background: #edf0f5; content: ""; }

.auth-note {
    padding: 12px 13px;
    border: 1px solid #e9edf4;
    border-radius: 10px;
    color: #6f7d91;
    background: #f9fafc;
    font-size: 10.5px;
    line-height: 1.55;
}
.auth-note i { margin-right: 6px; color: #3e83db; }

@media (max-width: 900px) {
    .auth-page { padding: 18px; }
    .auth-shell { min-height: auto; grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: calc(100vh - 36px); padding: 42px; }
    .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 36px;
        color: var(--auth-navy);
        text-decoration: none;
    }
    .auth-mobile-brand .auth-brand-mark { color: #fff; background: linear-gradient(145deg, var(--auth-navy), var(--auth-navy-deep)); }
    .auth-mobile-brand .auth-brand-name { color: var(--auth-navy); }
    .auth-mobile-brand .auth-brand-tagline { color: #8793a6; }
}

@media (max-width: 575.98px) {
    .auth-page { align-items: stretch; padding: 0; background: #fff; }
    .auth-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .auth-panel { min-height: 100vh; align-items: flex-start; padding: 30px 22px 38px; }
    .auth-form-wrap { width: 100%; }
    .auth-mobile-brand { margin-bottom: 42px; }
    .auth-title { font-size: 25px; }
    .auth-row { align-items: flex-start; }
}

@media (max-height: 720px) and (min-width: 901px) {
    .auth-page { align-items: flex-start; }
    .auth-shell { min-height: 610px; }
    .auth-panel { align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
    .auth-visual-content { padding-top: 28px; }
    .auth-network-art { height: 170px; margin-top: 22px; transform: scale(.88); }
}

/* FIX157 - trusted-device login dan aktivasi Supermaster awal */
.auth-device-note,
.auth-master-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    padding: 11px 12px;
    border: 1px solid #dce8fb;
    border-radius: 10px;
    background: #f6f9ff;
    color: #36506f;
}
.auth-device-note > i,
.auth-master-note > i { margin-top: 1px; color: #0d6efd; font-size: 15px; }
.auth-device-note strong { display:block; color:#273b58; font-size:10.5px; }
.auth-device-note span,.auth-master-note span { display:block; margin-top:2px; color:#73829a; font-size:9.5px; line-height:1.45; }
.auth-master-note { color:#5b21b6; border-color:#e7ddff; background:#f8f5ff; }
.auth-master-note > i { color:#7c3aed; }
.auth-row-end { justify-content:flex-end; }

/* FIX254 - Icon bawaan system dapat dipakai pada halaman autentikasi. */
.auth-brand-mark.auth-brand-mark-image {
    overflow: hidden;
    padding: 3px;
    background: #fff;
    letter-spacing: 0;
}

.auth-brand-mark.auth-brand-mark-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.auth-mobile-brand .auth-brand-mark.auth-brand-mark-image {
    background: #fff;
}
