/* Sci-fi admin login — lighter tech theme + richer orb motion */

/* 隔離父層 layout.blade.php 的全域 label/input 規則 */
body.is-login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px 16px;
    overflow-x: hidden;
    background-color: #dceef8 !important;
    background-image:
        radial-gradient(ellipse 90% 70% at 15% 20%, rgba(120, 190, 255, .55), transparent 55%),
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(180, 220, 255, .7), transparent 50%),
        radial-gradient(ellipse 70% 50% at 70% 95%, rgba(100, 170, 255, .35), transparent 45%),
        linear-gradient(165deg, #eaf6ff, #cfe6f7 55%, #b9daf0) !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-size: auto !important;
    color: #16324a;
}

body.is-login label {
    display: revert;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

body.is-login input[type="text"]:not(.login-otp-cell),
body.is-login input[type="password"],
body.is-login input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: initial;
    border-radius: initial;
    background: initial;
    color: inherit;
    box-shadow: none;
}

body.is-login input[type="text"]:not(.login-otp-cell):focus,
body.is-login input[type="password"]:focus {
    outline: none;
    border-color: initial;
    box-shadow: none;
    background: initial;
}

/* OTP 格子不受登入表單 reset 影響 */
body.is-login .login-otp-cell {
    width: 42px !important;
    height: 52px !important;
    padding: 0 !important;
    border: 1.5px solid #c5dde4 !important;
    border-radius: 12px !important;
    background: rgba(246, 250, 251, .98) !important;
    color: #183b55 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(26, 83, 99, .03) !important;
}

body.is-login .login-otp-cell:focus {
    outline: none;
    border-color: #359aab !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(69, 175, 187, .16), 0 8px 18px rgba(40, 127, 145, .1) !important;
}

body.is-login::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(40, 110, 180, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 110, 180, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
    animation: sciGridDrift 48s linear infinite;
}

body.is-login::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, .9), transparent),
        radial-gradient(1.5px 1.5px at 22% 70%, rgba(80, 160, 255, .7), transparent),
        radial-gradient(2px 2px at 40% 15%, rgba(255, 255, 255, .75), transparent),
        radial-gradient(1.5px 1.5px at 58% 40%, rgba(60, 140, 230, .65), transparent),
        radial-gradient(2px 2px at 75% 25%, rgba(255, 255, 255, .8), transparent),
        radial-gradient(1.5px 1.5px at 88% 72%, rgba(90, 170, 255, .55), transparent),
        radial-gradient(2px 2px at 65% 88%, rgba(255, 255, 255, .7), transparent);
    animation: sciStarsPulse 5s ease-in-out infinite alternate;
}

@keyframes sciGridDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-44px, -44px, 0); }
}

@keyframes sciStarsPulse {
    from { opacity: .4; }
    to { opacity: .85; }
}

/*
 * 架構：
 * .sci-login  = 兩欄等高 grid
 * .sci-visual = 直向 flex：球體區(flex:1 置中) + 標題區(貼底) — 分開控制
 * .sci-panel  = 直向 flex 整組置中
 */
.sci-login {
    --sci-pad-y: 36px;
    --sci-pad-x: 32px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(240, 248, 255, .96));
    border: 1px solid rgba(120, 180, 230, .4);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 18px 40px rgba(40, 90, 140, .12),
        0 4px 12px rgba(40, 90, 140, .06);
    animation: sciRise .55s var(--ease-out) both;
    backdrop-filter: blur(10px);
}

@keyframes sciRise {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes sciEnter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.sci-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 520px;
    padding: var(--sci-pad-y) var(--sci-pad-x);
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 38%, rgba(120, 190, 255, .5), transparent 58%),
        linear-gradient(180deg, #e2f2ff, #c5e3f8 60%, #b0d6f0);
    border-right: 1px solid rgba(120, 180, 230, .4);
    overflow: hidden;
}

/* 球體專屬區：吃掉標題以外的高度，球在此區內置中 */
.sci-stage-area {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    animation: sciEnter .6s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .05s both;
}

.sci-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 520px;
    padding: var(--sci-pad-y) var(--sci-pad-x);
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(240, 249, 255, .75));
}

.sci-visual::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        conic-gradient(from 0deg, transparent 0 62%, rgba(255, 255, 255, .28) 68%, transparent 74%, transparent 100%);
    animation: sciSweep 18s linear infinite;
    opacity: .75;
}

.sci-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .35), transparent 30%),
        radial-gradient(circle at 85% 25%, rgba(90, 170, 255, .25), transparent 28%);
    pointer-events: none;
}

@keyframes sciSweep {
    to { transform: rotate(360deg); }
}

.sci-stage {
    position: relative;
    width: min(250px, 70%);
    aspect-ratio: 1;
    margin: 0 auto;
    flex: none;
    perspective: 900px;
    transform-style: preserve-3d;
    animation: sciOrbFloat 7s var(--ease-in-out, ease-in-out) infinite;
}

@keyframes sciOrbFloat {
    0%, 100% { transform: translateY(0) rotateX(10deg); }
    50% { transform: translateY(-10px) rotateX(10deg); }
}

.sci-halo,
.sci-halo-2 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    height: 78%;
    margin: -39% 0 0 -39%;
    border-radius: 50%;
    border: 1px solid rgba(80, 160, 255, .28);
    box-shadow: 0 0 24px rgba(80, 160, 255, .14) inset;
    animation: sciHaloPulse 4s ease-in-out infinite;
}

.sci-halo-2 {
    width: 92%;
    height: 92%;
    margin: -46% 0 0 -46%;
    border-style: dashed;
    animation-delay: 1.1s;
    animation-duration: 5.2s;
}

@keyframes sciHaloPulse {
    0%, 100% { transform: scale(1); opacity: .55; }
    50% { transform: scale(1.05); opacity: 1; }
}

.sci-orb {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), transparent 28%),
        radial-gradient(circle at 68% 70%, rgba(20, 60, 160, .45), transparent 40%),
        radial-gradient(circle at 50% 50%, #7ec8ff 0%, #3a8adf 42%, #202088 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, .55),
        0 0 28px rgba(60, 150, 255, .35),
        inset 0 -18px 30px rgba(10, 40, 120, .35),
        inset 0 12px 24px rgba(255, 255, 255, .35);
    overflow: hidden;
    z-index: 3;
}

.sci-orb-core {
    position: absolute;
    inset: 34%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .75), rgba(100, 180, 255, .25) 55%, transparent 70%);
    animation: sciCorePulse 3.2s ease-in-out infinite;
}

@keyframes sciCorePulse {
    0%, 100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.sci-orb-scan {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 28%;
    top: -30%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .4), transparent);
    animation: sciScan 4s ease-in-out infinite;
}

@keyframes sciScan {
    0% { top: -35%; opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: .65; }
    100% { top: 110%; opacity: 0; }
}

.sci-orb-lat,
.sci-orb-mer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: .55;
    mix-blend-mode: soft-light;
}

.sci-orb-lat {
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 12px,
            rgba(255, 255, 255, .2) 12px 13px
        );
    animation: sciLatShift 16s linear infinite;
}

.sci-orb-mer {
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 16px,
            rgba(255, 255, 255, .14) 16px 17px
        );
    animation: sciMerShift 20s linear infinite reverse;
    opacity: .4;
}

@keyframes sciLatShift {
    to { transform: rotate(18deg) scale(1.05); }
}

@keyframes sciMerShift {
    to { transform: rotate(-22deg) scale(1.08); }
}

.sci-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(40, 120, 210, .38);
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 2;
}

.sci-orbit-a {
    width: 104%;
    height: 104%;
    margin: -52% 0 0 -52%;
    border-style: dashed;
    animation: sciSpin 16s linear infinite;
}

.sci-orbit-b {
    width: 124%;
    height: 124%;
    margin: -62% 0 0 -62%;
    border-color: rgba(60, 140, 230, .42);
    animation: sciSpin 22s linear infinite reverse;
}

.sci-orbit-c {
    width: 148%;
    height: 46%;
    margin: -23% 0 0 -74%;
    border-color: rgba(30, 100, 200, .5);
    box-shadow: 0 0 14px rgba(80, 160, 255, .22);
    animation: sciTiltSpinA 10s linear infinite;
}

.sci-orbit-d {
    width: 164%;
    height: 50%;
    margin: -25% 0 0 -82%;
    border-style: dotted;
    border-color: rgba(80, 150, 230, .55);
    animation: sciTiltSpinB 14s linear infinite reverse;
}

.sci-orbit-e {
    width: 138%;
    height: 138%;
    margin: -69% 0 0 -69%;
    border-style: dashed;
    border-color: rgba(50, 130, 220, .28);
    animation: sciSpin 30s linear infinite;
}

.sci-orbit-f {
    width: 178%;
    height: 54%;
    margin: -27% 0 0 -89%;
    border-color: rgba(40, 120, 210, .4);
    animation: sciTiltSpinC 18s linear infinite;
}

@keyframes sciSpin {
    to { transform: rotate(360deg); }
}

@keyframes sciTiltSpinA {
    from { transform: rotateX(68deg) rotateZ(-12deg); }
    to { transform: rotateX(68deg) rotateZ(348deg); }
}

@keyframes sciTiltSpinB {
    from { transform: rotateX(72deg) rotateZ(28deg); }
    to { transform: rotateX(72deg) rotateZ(388deg); }
}

@keyframes sciTiltSpinC {
    from { transform: rotateX(64deg) rotateZ(-40deg); }
    to { transform: rotateX(64deg) rotateZ(320deg); }
}

.sci-arc {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(60, 150, 255, .55);
    border-right-color: rgba(60, 150, 255, .2);
    z-index: 1;
}

.sci-arc-1 {
    width: 118%;
    height: 118%;
    margin: -59% 0 0 -59%;
    animation: sciSpin 9s linear infinite;
}

.sci-arc-2 {
    width: 152%;
    height: 152%;
    margin: -76% 0 0 -76%;
    border-top-color: rgba(32, 32, 136, .35);
    border-left-color: rgba(80, 160, 255, .25);
    border-right-color: transparent;
    animation: sciSpin 14s linear infinite reverse;
}

.sci-sat {
    position: absolute;
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #4aa8ff 55%, #202088);
    box-shadow: 0 0 12px rgba(80, 170, 255, .85), 0 0 2px #fff;
}

.sci-orbit-a .sci-sat { left: 50%; top: 0; }
.sci-orbit-a .sci-sat-2 { left: 50%; top: 100%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.sci-orbit-b .sci-sat { left: 100%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.sci-orbit-b .sci-sat-2 { left: 0; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.sci-orbit-b .sci-sat-3 { left: 50%; top: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: radial-gradient(circle, #fff, #9fd4ff); }
.sci-orbit-c .sci-sat { left: 8%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.sci-orbit-c .sci-sat-2 { left: 88%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.sci-orbit-d .sci-sat { left: 92%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: radial-gradient(circle, #fff, #7ec8ff); }
.sci-orbit-d .sci-sat-2 { left: 12%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.sci-orbit-e .sci-sat { left: 20%; top: 8%; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.sci-orbit-f .sci-sat { left: 70%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.sci-orbit-f .sci-sat-2 { left: 18%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }

.sci-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    height: 42%;
    margin: -21% 0 0 -21%;
    border-radius: 50%;
    border: 2px solid rgba(80, 160, 255, .35);
    animation: sciPulse 3.4s var(--ease-out, ease-out) infinite;
    z-index: 1;
}

.sci-pulse:nth-child(2) { animation-delay: .85s; }
.sci-pulse:nth-child(3) { animation-delay: 1.7s; }
.sci-pulse:nth-child(4) { display: none; }

@keyframes sciPulse {
    0% { transform: scale(.6); opacity: .7; }
    100% { transform: scale(2.3); opacity: 0; }
}

.sci-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.sci-dots span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(80, 160, 255, .7);
    animation: sciDotFloat 5.5s ease-in-out infinite;
}

.sci-dots span:nth-child(1) { left: 6%; top: 20%; animation-delay: 0s; }
.sci-dots span:nth-child(2) { left: 88%; top: 14%; animation-delay: .5s; width: 3px; height: 3px; }
.sci-dots span:nth-child(3) { left: 10%; top: 78%; animation-delay: 1s; }
.sci-dots span:nth-child(4) { left: 92%; top: 70%; animation-delay: 1.5s; width: 5px; height: 5px; }
.sci-dots span:nth-child(5) { left: 46%; top: 2%; animation-delay: .3s; }
.sci-dots span:nth-child(6) { left: 52%; top: 96%; animation-delay: 1.8s; width: 3px; height: 3px; }
.sci-dots span:nth-child(7) { left: 2%; top: 48%; animation-delay: .9s; width: 3px; height: 3px; }
.sci-dots span:nth-child(8) { left: 97%; top: 42%; animation-delay: 1.2s; }
.sci-dots span:nth-child(9) { left: 28%; top: 8%; animation-delay: 2.1s; width: 2px; height: 2px; }
.sci-dots span:nth-child(10) { left: 74%; top: 90%; animation-delay: .7s; width: 3px; height: 3px; }

@keyframes sciDotFloat {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.sci-visual-copy {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 12px 8px 0;
    text-align: center;
    animation: sciEnter .55s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .18s both;
}

.sci-visual-copy .eyebrow {
    margin: 0 0 10px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #2b6fb5;
}

.sci-visual-copy h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: .04em;
    color: #123552;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.sci-visual-copy p {
    margin: 8px 0 0;
    font-size: .88rem;
    color: #3d6d93;
    line-height: 1.55;
}

.sci-panel-head {
    text-align: center;
    margin-bottom: 28px;
    animation: sciEnter .5s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .1s both;
}

.sci-brand-logo {
    width: min(100%, 360px);
    margin: 0 auto;
    padding: 0;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    box-shadow: none;
}

.sci-brand-logo img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.sci-panel-title {
    margin: 14px 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #16324a;
    line-height: 1.3;
}

body.is-login .wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    animation: none;
}

.sci-form {
    display: grid;
    gap: 18px;
}

.sci-form > .sci-float-field:nth-of-type(1) {
    animation: sciEnter .5s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .18s both;
}

.sci-form > .sci-float-field:nth-of-type(2) {
    animation: sciEnter .5s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .26s both;
}

.sci-form > .sci-meta {
    animation: sciEnter .5s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .34s both;
}

.sci-form > .sci-submit {
    animation: sciEnter .5s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .42s both;
}

.sci-float-field {
    position: relative;
    margin-top: 4px;
    padding-top: 22px;
}

.sci-float-field input[type="text"],
.sci-float-field input[type="password"] {
    display: block;
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(120, 180, 230, .65) !important;
    background: rgba(255, 255, 255, .95) !important;
    color: #16324a !important;
    font: inherit;
    font-size: 1rem !important;
    box-shadow: 0 6px 16px rgba(60, 120, 180, .08);
    outline: none;
    transition: border-color .28s ease, box-shadow .28s ease;
    text-indent: 0 !important;
}

.sci-float-field input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.sci-float-field > label {
    position: absolute !important;
    left: 16px;
    top: calc(22px + 26px);
    display: inline-block !important;
    width: auto;
    margin: 0 !important;
    padding: 0;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
    text-transform: none !important;
    color: #7a9bb5 !important;
    background: transparent !important;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left center;
    transition:
        top .28s cubic-bezier(.22, 1, .36, 1),
        transform .28s cubic-bezier(.22, 1, .36, 1),
        color .28s ease,
        font-size .28s ease;
    z-index: 3;
}

.sci-float-field input:focus,
.sci-float-field input:not(:placeholder-shown) {
    border-color: #3aa0ff !important;
    box-shadow:
        0 0 0 3px rgba(58, 160, 255, .15),
        0 8px 22px rgba(60, 140, 220, .12);
}

/* 完全在輸入框外上方（:has 比相鄰兄弟選擇器更穩） */
.sci-float-field:has(input:focus) > label,
.sci-float-field:has(input:not(:placeholder-shown)) > label {
    top: 0 !important;
    left: 4px;
    transform: translateY(0) scale(.9);
    color: #2a78ff !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.sci-float-glow {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #5ec8ff, #2a78ff, #202088, #5ec8ff, transparent);
    background-size: 200% 100%;
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .28s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.sci-float-field input:focus ~ .sci-float-glow {
    opacity: 1;
    transform: scaleX(1);
    animation: sciFloatShine 1.8s linear infinite;
}

@keyframes sciFloatShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.sci-form > label {
    margin: 0 0 6px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3d6d93;
}

.sci-form input[type="text"],
.sci-form input[type="password"] {
    width: 100%;
}

.sci-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.sci-meta label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .86rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #3d6d93;
    cursor: pointer;
    user-select: none;
}

.sci-meta input[type="checkbox"] {
    width: auto;
    accent-color: #2a78ff;
}

.sci-submit {
    margin-top: 6px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .18em;
    color: #fff;
    background: linear-gradient(135deg, #5ec8ff, #2a78ff 50%, #202088);
    background-size: 180% 100%;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .25) inset,
        0 8px 20px rgba(40, 90, 160, .22);
    transition: transform 160ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
        filter 160ms ease,
        box-shadow 200ms ease,
        background-position 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .sci-submit:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
        background-position: 100% 50%;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, .28) inset,
            0 12px 26px rgba(40, 90, 160, .3);
    }
}

.sci-submit:active {
    transform: scale(0.97);
    filter: brightness(.98);
}

.sci-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: .78rem;
    color: #6a92b0;
    animation: sciEnter .5s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) .5s both;
}

.sci-alert {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    font-size: .9rem;
}

.sci-alert ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 780px) {
    .sci-login {
        --sci-pad-y: 28px;
        --sci-pad-x: 22px;
        grid-template-columns: 1fr;
    }
    .sci-visual,
    .sci-panel {
        min-height: 0;
    }
    .sci-visual {
        min-height: 300px;
        border-right: 0;
        border-bottom: 1px solid rgba(120, 180, 230, .4);
    }
    .sci-stage {
        width: min(200px, 72%);
    }
    .sci-visual-copy h2 {
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sci-login,
    .sci-stage,
    .sci-stage-area,
    .sci-visual-copy,
    .sci-panel-head,
    .sci-form > *,
    .sci-foot,
    .sci-halo,
    .sci-halo-2,
    .sci-orbit,
    .sci-arc,
    .sci-pulse,
    .sci-dots span,
    .sci-orb-core,
    .sci-orb-scan,
    .sci-orb-lat,
    .sci-orb-mer,
    body.is-login::before,
    body.is-login::after,
    .sci-visual::before {
        animation: none !important;
    }
    .sci-submit,
    .sci-float-field > label,
    .sci-float-glow,
    .sci-float-field input[type="text"],
    .sci-float-field input[type="password"] {
        transition: none !important;
    }
}
