/* ================================================================
   LOGIN PAGE — Splash Screen & Login Form
   Uses CSS custom properties from colors.css
   ================================================================ */

/* ---- Page-level resets for login ---- */
.cb-login-page,
.cb-login-page html,
.cb-login-page body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: var(--cb-font-family);
    background: var(--cb-primary-dark);
    color: var(--cb-text);
}

/* ================================================================
   PHASE 1 — SPLASH SCREEN
   ================================================================ */
.cb-splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background:
        radial-gradient(
            circle at 50% 42%,
            color-mix(in srgb, var(--cb-secondary) 20%, transparent),
            transparent 28%
        ),
        radial-gradient(
            circle at 16% 20%,
            color-mix(in srgb, var(--cb-primary-light) 18%, transparent),
            transparent 24%
        ),
        radial-gradient(
            circle at 86% 78%,
            color-mix(in srgb, var(--cb-secondary-light) 16%, transparent),
            transparent 26%
        ),
        linear-gradient(
            155deg,
            var(--cb-primary-dark),
            var(--cb-primary) 48%,
            var(--cb-primary-dark)
        );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-splash-screen.cb-splash-exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

/* Splash background particles canvas */
.cb-splash-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Orbit sweep accents around the logo */
.cb-splash-rings {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    animation: cbSplashOrbitEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s
        forwards;
}

.cb-splash-ring {
    position: absolute;
    inset: 22px;
    border: 1px solid transparent;
    border-top-color: color-mix(
        in srgb,
        var(--cb-secondary-light) 78%,
        transparent
    );
    border-right-color: color-mix(
        in srgb,
        var(--cb-secondary) 34%,
        transparent
    );
    border-radius: 50%;
    filter: drop-shadow(
        0 0 12px color-mix(in srgb, var(--cb-secondary) 30%, transparent)
    );
    animation: cbSplashOrbitSpin 2.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.cb-splash-ring:nth-child(2) {
    inset: 42px;
    border-top-color: transparent;
    border-bottom-color: color-mix(
        in srgb,
        var(--cb-secondary-light) 58%,
        transparent
    );
    border-left-color: color-mix(in srgb, var(--cb-secondary) 24%, transparent);
    animation-duration: 3.1s;
    animation-direction: reverse;
}

.cb-splash-ring:nth-child(3) {
    inset: 64px;
    border-right-color: transparent;
    border-bottom-color: color-mix(in srgb, var(--cb-surface) 44%, transparent);
    animation-duration: 1.9s;
}

.cb-splash-ring:nth-child(4) {
    inset: 88px;
    border-top-color: color-mix(in srgb, var(--cb-surface) 64%, transparent);
    border-right-color: transparent;
    animation-duration: 2.8s;
    animation-direction: reverse;
}

@keyframes cbSplashOrbitEnter {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes cbSplashOrbitSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Logo container */
.cb-splash-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: translate(-50%, -50%);
}

.cb-splash-copy-wrap {
    position: absolute;
    top: calc(50% + 78px);
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(420px, calc(100vw - 40px));
    transform: translateX(-50%);
    margin-top: 3rem;
}

.cb-splash-logo-box {
    width: 100px;
    height: 100px;
    border-radius: var(--cb-radius-xl);
    background: var(--cb-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.34),
        0 0 0 1px color-mix(in srgb, var(--cb-surface) 40%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--cb-surface) 74%, transparent);
    opacity: 0;
    transform: translateY(18px) scale(0.88);
    animation:
        cbSplashLogoEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
        cbSplashLogoFloat 2.6s ease-in-out 1.15s infinite;
}

.cb-splash-logo-box::before {
    position: absolute;
    inset: -45%;
    content: "";
    background: linear-gradient(
        115deg,
        transparent 38%,
        color-mix(in srgb, var(--cb-surface) 72%, transparent) 50%,
        transparent 62%
    );
    opacity: 0;
    transform: translateX(-42%) rotate(8deg);
    animation: cbSplashLogoSweep 1.35s ease 0.8s forwards;
}

.cb-splash-logo-box img {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@keyframes cbSplashLogoEnter {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.88);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cbSplashLogoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1);
    }
}

@keyframes cbSplashLogoSweep {
    12% {
        opacity: 0.42;
    }

    100% {
        opacity: 0;
        transform: translateX(42%) rotate(8deg);
    }
}

/* Brand name */
.cb-splash-brand {
    display: block;
    position: static;
    width: 100%;
    margin-top: 0;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--cb-text-inverse) 76%, transparent),
            var(--cb-text-inverse) 42%,
            color-mix(in srgb, var(--cb-secondary-light) 72%, var(--cb-text-inverse)) 58%,
            color-mix(in srgb, var(--cb-text-inverse) 82%, transparent)
        );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(14px);
    text-shadow: 0 10px 26px color-mix(in srgb, var(--cb-primary-dark) 34%, transparent);
    animation:
        cbSplashBrandReveal 0.68s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards,
        cbSplashBrandShimmer 1.8s ease-in-out 1.3s infinite;
}

.cb-splash-brand::after {
    display: block;
    width: 0;
    height: 2px;
    margin: 5px auto 0;
    content: "";
    border-radius: var(--cb-radius-full);
    background: linear-gradient(90deg, transparent, var(--cb-secondary-light), transparent);
    opacity: 0;
    animation: cbSplashBrandUnderline 0.78s cubic-bezier(0.22, 1, 0.36, 1) 1.22s forwards;
}

@keyframes cbSplashFadeUp {
    to {
        opacity: 1;
    }
}

@keyframes cbSplashCopyEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cbSplashBrandReveal {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(16px) scale(0.96);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes cbSplashBrandShimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes cbSplashBrandUnderline {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: min(128px, 46%);
        opacity: 0.9;
    }
}

/* Tagline */
.cb-splash-tagline {
    position: static;
    width: 100%;
    margin-top: 6px;
    font-size: var(--cb-font-size-sm);
    color: color-mix(in srgb, var(--cb-text-inverse) 62%, transparent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    animation: cbSplashCopyEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.28s
        forwards;
}

/* Progress bar */
.cb-splash-progress-wrap {
    position: absolute;
    bottom: 80px;
    left: 50%;
    width: 200px;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, 10px);
    animation: cbSplashProgressEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.45s
        forwards;
}

.cb-splash-progress-track {
    width: 100%;
    height: 3px;
    background: color-mix(in srgb, var(--cb-text-inverse) 13%, transparent);
    border-radius: 4px;
    overflow: hidden;
}

.cb-splash-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--cb-secondary),
        var(--cb-secondary-light)
    );
    border-radius: 4px;
    animation: cbSplashProgressFill 2s cubic-bezier(0.4, 0, 0.2, 1) 1.6s
        forwards;
    box-shadow: 0 0 12px
        color-mix(in srgb, var(--cb-secondary) 40%, transparent);
}

@keyframes cbSplashProgressEnter {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes cbSplashProgressFill {
    0% {
        width: 0%;
    }

    30% {
        width: 45%;
    }

    60% {
        width: 72%;
    }

    100% {
        width: 100%;
    }
}

.cb-splash-progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: color-mix(in srgb, var(--cb-text-inverse) 44%, transparent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Version text */
.cb-splash-version {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
    z-index: 2;
    opacity: 0;
    animation: cbSplashFadeUp 0.5s ease 2s forwards;
}

/* ================================================================
   PHASE 2 — LOGIN SCREEN
   ================================================================ */
.cb-login-screen {
    position: fixed;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.cb-login-screen.cb-login-visible {
    opacity: 1;
}

/* Animated gradient background */
.cb-login-anim-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -45deg,
        var(--cb-primary-dark),
        var(--cb-primary),
        #1a5c1b,
        var(--cb-secondary-dark),
        var(--cb-primary-dark)
    );
    background-size: 400% 400%;
    animation: cbLoginGradientShift 15s ease infinite;
}

@keyframes cbLoginGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating shapes */
.cb-login-floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cb-login-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cb-login-shape:nth-child(1) {
    width: 350px;
    height: 350px;
    top: -100px;
    right: -80px;
    animation: cbLoginFloatA 9s ease-in-out infinite;
}

.cb-login-shape:nth-child(2) {
    width: 250px;
    height: 250px;
    bottom: -60px;
    left: -60px;
    animation: cbLoginFloatB 11s ease-in-out infinite;
}

.cb-login-shape:nth-child(3) {
    width: 140px;
    height: 140px;
    top: 25%;
    left: 12%;
    animation: cbLoginFloatA 13s ease-in-out infinite reverse;
}

.cb-login-shape:nth-child(4) {
    width: 90px;
    height: 90px;
    bottom: 28%;
    right: 18%;
    animation: cbLoginFloatB 8s ease-in-out infinite;
}

.cb-login-shape:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 30%;
    border-radius: 12px;
    animation: cbLoginFloatA 10s ease-in-out infinite 2s;
}

.cb-login-bubbles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cb-login-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 1px solid color-mix(in srgb, var(--cb-text-inverse) 16%, transparent);
    border-radius: var(--cb-radius-full);
    background:
        radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--cb-text-inverse) 18%, transparent), transparent 34%),
        color-mix(in srgb, var(--cb-surface) 8%, transparent);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 color-mix(in srgb, var(--cb-text-inverse) 18%, transparent);
    color: color-mix(in srgb, var(--cb-text-inverse) 78%, transparent);
    opacity: 0.58;
    transform: translate3d(0, 0, 0);
    animation: cbLoginBubbleDrift 16s ease-in-out infinite;
}

.cb-login-bubble span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.cb-login-bubble svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cb-login-bubble small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--cb-text-inverse) 48%, transparent);
}

.cb-login-bubble:nth-child(1) {
    top: 12%;
    left: 8%;
    animation-duration: 17s;
}

.cb-login-bubble:nth-child(2) {
    top: 18%;
    right: 12%;
    width: 74px;
    height: 74px;
    animation-name: cbLoginBubbleDriftAlt;
    animation-duration: 19s;
    animation-delay: -5s;
}

.cb-login-bubble:nth-child(3) {
    top: 58%;
    left: 7%;
    width: 92px;
    height: 92px;
    animation-duration: 21s;
    animation-delay: -9s;
}

.cb-login-bubble:nth-child(4) {
    right: 7%;
    bottom: 18%;
    width: 70px;
    height: 70px;
    animation-name: cbLoginBubbleDriftAlt;
    animation-duration: 15s;
    animation-delay: -3s;
}

.cb-login-bubble:nth-child(5) {
    top: 38%;
    right: 20%;
    width: 88px;
    height: 88px;
    animation-duration: 18s;
    animation-delay: -11s;
}

.cb-login-bubble:nth-child(6) {
    bottom: 12%;
    left: 20%;
    width: 76px;
    height: 76px;
    animation-name: cbLoginBubbleDriftAlt;
    animation-duration: 20s;
    animation-delay: -7s;
}

.cb-login-bubble:nth-child(7) {
    top: 34%;
    left: 22%;
    width: 64px;
    height: 64px;
    opacity: 0.44;
    animation-duration: 14s;
    animation-delay: -2s;
}

.cb-login-bubble:nth-child(8) {
    right: 28%;
    bottom: 8%;
    width: 66px;
    height: 66px;
    opacity: 0.46;
    animation-name: cbLoginBubbleDriftAlt;
    animation-duration: 16s;
    animation-delay: -12s;
}

@keyframes cbLoginFloatA {
    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(20px, -25px) scale(1.04) rotate(5deg);
    }

    66% {
        transform: translate(-10px, 15px) scale(0.97) rotate(-3deg);
    }
}

@keyframes cbLoginBubbleDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    32% {
        transform: translate3d(22px, -28px, 0) scale(1.04);
    }

    66% {
        transform: translate3d(-16px, 24px, 0) scale(0.96);
    }
}

@keyframes cbLoginBubbleDriftAlt {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    40% {
        transform: translate3d(-26px, 18px, 0) scale(0.95);
    }

    72% {
        transform: translate3d(18px, -22px, 0) scale(1.05);
    }
}

@keyframes cbLoginFloatB {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-18px, 22px) scale(0.95);
    }
}

/* Dot grid overlay */
.cb-login-dot-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px
    );
    background-size: 32px 32px;
}

/* Centering wrapper */
.cb-login-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
}

/* Main login card */
.cb-login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    background: var(--cb-surface);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 32px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-width: 440px;
    width: 90vw;
    min-height: auto;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.cb-login-container.cb-login-card-enter {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---- Right form panel ---- */
.cb-login-right {
    flex: 1;
    width: 100%;
    padding: 48px 40px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.cb-login-form-inner {
    width: 100%;
    max-width: 100%;
}

.cb-login-panel-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.cb-login-panel-logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cb-login-form-inner h2 {
    font-size: var(--cb-font-size-xl);
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease;
}

.cb-login-form-sub {
    color: var(--cb-text-muted);
    font-size: var(--cb-font-size-sm);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease 0.06s;
}

/* Staggered form field animations */
.cb-login-form-field {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-login-form-field:nth-child(1) {
    transition-delay: 0.12s;
}

.cb-login-form-field:nth-child(2) {
    transition-delay: 0.18s;
}

.cb-login-form-field:nth-child(3) {
    transition-delay: 0.24s;
}

.cb-login-form-field:nth-child(4) {
    transition-delay: 0.3s;
}

.cb-login-form-field:nth-child(5) {
    transition-delay: 0.36s;
}

.cb-login-form-field:nth-child(6) {
    transition-delay: 0.42s;
}

.cb-login-form-field:nth-child(7) {
    transition-delay: 0.48s;
}

.cb-login-form-field:nth-child(8) {
    transition-delay: 0.54s;
}

.cb-login-form-inner.cb-login-reveal h2,
.cb-login-form-inner.cb-login-reveal .cb-login-form-sub,
.cb-login-form-inner.cb-login-reveal .cb-login-form-field {
    opacity: 1;
    transform: translateY(0);
}

/* Input groups */
.cb-login-input-group {
    position: relative;
    margin-bottom: 16px;
}

.cb-login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--cb-border-dark);
    border-radius: var(--cb-radius-md);
    font-family: var(--cb-font-family);
    font-size: var(--cb-font-size-base);
    color: var(--cb-text);
    background: var(--cb-surface);
    transition: all var(--cb-transition-base);
    outline: none;
}

.cb-login-input[type="password"] {
    padding-right: 44px;
}

.cb-login-input:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(42, 101, 43, 0.12);
}

.cb-login-input::placeholder {
    color: var(--cb-text-light);
}

.cb-login-input-icon {
    position: absolute;
    left: 14px;
    top: 23px;
    transform: translateY(-50%);
    color: var(--cb-text-light);
    width: 18px;
    height: 18px;
    transition: color var(--cb-transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-login-input-group:focus-within .cb-login-input-icon {
    color: var(--cb-primary);
}

/* Password toggle */
.cb-login-pw-toggle {
    position: absolute;
    right: 14px;
    top: 23px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--cb-text-light);
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-login-pw-toggle:focus,
.cb-login-pw-toggle:focus-visible {
    color: var(--cb-primary);
    border-radius: var(--cb-radius-sm);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-primary) 22%, transparent);
}

.cb-login-pw-toggle:focus:not(:focus-visible) {
    box-shadow: none;
}

.cb-login-pw-toggle:hover {
    color: var(--cb-text-muted);
}

/* Primary login button */
.cb-login-btn {
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: var(--cb-radius-md);
    font-family: var(--cb-font-family);
    font-size: var(--cb-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--cb-transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(
        135deg,
        var(--cb-primary-light),
        var(--cb-primary)
    );
    color: #fff;
    box-shadow: 0 4px 14px rgba(42, 101, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.cb-login-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--cb-primary),
        var(--cb-primary-dark)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cb-login-btn:hover {
    box-shadow: 0 6px 24px rgba(42, 101, 43, 0.4);
    transform: translateY(-1px);
}

.cb-login-btn:hover::after {
    opacity: 1;
}

.cb-login-btn:active {
    transform: translateY(0);
}

.cb-login-btn:disabled,
.cb-login-btn.is-authenticating {
    cursor: wait;
    opacity: 0.88;
    transform: none;
}

.cb-login-btn.is-authenticating svg {
    animation: cbLoginSubmitSpin 0.9s linear infinite;
}

.cb-login-btn span,
.cb-login-btn svg {
    position: relative;
    z-index: 1;
}

@keyframes cbLoginSubmitSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Validation errors container */
.cb-login-errors {
    margin-bottom: 16px;
}

.cb-login-errors .alert {
    font-size: var(--cb-font-size-sm);
    padding: 10px 14px;
    border-radius: var(--cb-radius-md);
}

/* Status message */
.cb-login-status {
    margin-bottom: 16px;
    font-size: var(--cb-font-size-sm);
}

.cb-login-status-success {
    color: var(--cb-success);
    font-weight: var(--cb-font-weight-medium);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .cb-login-container {
        flex-direction: column;
        min-height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    .cb-login-right {
        padding: 28px 24px;
    }

    .cb-login-form-inner {
        max-width: 100%;
    }

    .cb-login-bubble {
        width: 64px;
        height: 64px;
        opacity: 0.34;
    }

    .cb-login-bubble span {
        font-size: 14px;
    }

    .cb-login-bubble small {
        display: none;
    }

    .cb-splash-logo-box {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .cb-splash-logo-box img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    .cb-login-center {
        padding: 16px;
    }

    .cb-login-container {
        border-radius: 16px;
        min-height: auto;
    }

    .cb-login-right {
        padding: 24px 20px;
    }

    .cb-login-bubble:nth-child(n + 5) {
        display: none;
    }

    .cb-splash-rings {
        width: 200px;
        height: 200px;
    }

    .cb-splash-progress-wrap {
        bottom: 60px;
        width: 160px;
    }

    .cb-splash-brand {
        font-size: 24px;
    }

    .cb-splash-tagline {
        font-size: 11px;
    }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .cb-splash-screen,
    .cb-splash-ring,
    .cb-splash-logo-box,
    .cb-splash-brand,
    .cb-splash-tagline,
    .cb-splash-progress-wrap,
    .cb-splash-progress-bar,
    .cb-splash-version,
    .cb-login-screen,
    .cb-login-container,
    .cb-login-anim-bg,
    .cb-login-shape,
    .cb-login-bubble,
    .cb-login-form-inner h2,
    .cb-login-form-inner .cb-login-form-sub,
    .cb-login-form-field {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cb-login-bubble {
        transform: none;
    }

    .cb-splash-brand,
    .cb-splash-tagline {
        opacity: 1;
        transform: none;
    }

    .cb-splash-brand::after {
        width: min(128px, 46%);
        opacity: 0.9;
    }
}
