@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap");

body {
    font-family: "Sarabun", sans-serif;
    background-color: #f3f4f6;
}

body.app-data-loading {
    overflow: hidden;
}

body.login-identity-loading {
    overflow: hidden;
}

/* ==========================================================================
   Splash Overlay Styles (Initial Web App Loading Screen)
   ========================================================================== */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #f0fdfa 0%, #e2e8f0 65%, #cbd5e1 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, visibility;
}

.splash-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.04);
}

.splash-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.88) 0%, rgba(241, 245, 249, 0.96) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.splash-glow {
    border-radius: 9999px;
    filter: blur(50px);
    opacity: 0.55;
    pointer-events: none;
    animation: splashGlowPulse 4s ease-in-out infinite alternate;
}

.splash-glow--1 {
    width: 22rem;
    height: 22rem;
    top: 15%;
    left: 20%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 70%);
}

.splash-glow--2 {
    width: 20rem;
    height: 20rem;
    bottom: 15%;
    right: 20%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 70%);
    animation-delay: -2s;
}

@keyframes splashGlowPulse {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.1) translate(10px, -10px);
        opacity: 0.65;
    }
}

.splash-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(204, 251, 241, 0.95);
    border-radius: 2rem;
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: splashCardFloat 3.5s ease-in-out infinite alternate;
}

@keyframes splashCardFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-4px);
    }
}

.splash-logo-container {
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-ring {
    position: absolute;
    border-radius: 9999px;
    border: 1.5px solid transparent;
    pointer-events: none;
}

.splash-ring--outer {
    inset: -6px;
    border-top-color: rgba(13, 148, 136, 0.85);
    border-bottom-color: rgba(249, 115, 22, 0.6);
    animation: splashSpin 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.splash-ring--inner {
    inset: -1px;
    border-left-color: rgba(20, 184, 166, 0.7);
    border-right-color: rgba(20, 184, 166, 0.2);
    animation: splashSpinReverse 2s linear infinite;
}

.splash-logo-core {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.35rem;
    background: #ffffff;
    border: 1.5px solid rgba(204, 251, 241, 0.9);
    box-shadow:
        0 10px 25px -5px rgba(13, 148, 136, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.35rem;
    transition: transform 0.3s ease;
}

.splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    display: block;
}

@keyframes splashSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes splashSpinReverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.splash-brand-title {
    font-family: "Kanit", "Sarabun", sans-serif;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #0f172a 30%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-progress-track {
    height: 0.45rem;
    background: rgba(203, 213, 225, 0.6);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.splash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.splash-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: splashShimmer 1.4s infinite;
}

@keyframes splashShimmer {
    0% {
        transform: translateX(-30px);
    }
    100% {
        transform: translateX(30px);
    }
}

.splash-dot-pulse {
    animation: splashPulse 1.2s ease-in-out infinite;
}

@keyframes splashPulse {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.splash-credit {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Kanit", "Sarabun", sans-serif;
    color: #64748b;
    letter-spacing: 0.025em;
}

.splash-credit-author {
    font-weight: 600;
    background: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-identity-loading-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.34s ease, visibility 0.34s ease;
}

.login-identity-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 16%, rgba(20, 184, 166, 0.18), rgba(20, 184, 166, 0) 42%),
        radial-gradient(circle at 86% 80%, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0) 45%),
        rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(6px) saturate(108%);
    -webkit-backdrop-filter: blur(6px) saturate(108%);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.section-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section-loading-overlay--context {
    z-index: 60;
    border-radius: inherit;
}

.loading-overlay-host {
    position: relative;
    isolation: isolate;
}

.floating-refresh-fab {
    position: fixed;
    right: calc(env(safe-area-inset-right, 0px) + 0.95rem);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.1rem);
    z-index: 160;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    width: 3.75rem;
    height: 3.75rem;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98) 40%),
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.14));
    box-shadow: 0 22px 40px -28px rgba(15, 23, 42, 0.9), 0 14px 28px -20px rgba(15, 118, 110, 0.55);
    color: #0f172a;
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.floating-refresh-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 44px -28px rgba(15, 23, 42, 0.92), 0 18px 32px -22px rgba(249, 115, 22, 0.45);
}

.floating-refresh-fab:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.24);
    outline-offset: 3px;
}

.floating-refresh-fab:disabled {
    opacity: 0.92;
    cursor: wait;
    transform: none;
}

.floating-refresh-fab.is-overlay-blocked {
    opacity: 0.72;
    pointer-events: none;
    transform: none;
}

.floating-refresh-fab__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #f97316);
    color: #fff;
    box-shadow: 0 12px 20px -14px rgba(15, 118, 110, 0.9);
}

.floating-refresh-fab__icon {
    font-size: 1rem;
}

.floating-refresh-fab.is-loading .floating-refresh-fab__icon {
    animation: floating-refresh-spin 0.95s linear infinite;
}

@keyframes floating-refresh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .floating-refresh-fab {
        right: calc(env(safe-area-inset-right, 0px) + 1.45rem);
        bottom: calc(env(safe-area-inset-bottom, 0px) + 1.45rem);
    }
}

@media (max-width: 767px) {
    .floating-refresh-fab {
        width: 3.45rem;
        height: 3.45rem;
    }
}

.login-identity-loading-overlay .login-identity-loading-backdrop {
    background:
        radial-gradient(circle at 18% 16%, rgba(20, 184, 166, 0.36), rgba(20, 184, 166, 0) 42%),
        radial-gradient(circle at 86% 80%, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0) 45%),
        rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px) saturate(112%);
}

.login-identity-loading-card {
    width: min(92vw, 30rem);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.3);
    animation: loginIdentityCardFloat 2.9s ease-in-out infinite;
}

.login-identity-loading-core {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 22%, #ecfeff 0%, #9ce6df 45%, #67d8ce 100%);
    color: #0f766e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 20px rgba(13, 148, 136, 0.22);
    overflow: hidden;
}

.login-identity-loading-core::before {
    content: "";
    position: absolute;
    inset: -0.25rem;
    border-radius: inherit;
    border: 2px solid transparent;
    border-top-color: rgba(13, 148, 136, 0.9);
    border-right-color: rgba(13, 148, 136, 0.35);
    animation: loginIdentityLoaderSpin 1.1s linear infinite;
}

.login-identity-loading-bar {
    position: relative;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    overflow: hidden;
}

.login-identity-loading-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.75), rgba(13, 148, 136, 0.1));
    animation: loginIdentityBarSweep 1.2s ease-in-out infinite;
}

.login-identity-loading-dot {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: #14b8a6;
    animation: loginIdentityDotPulse 1.35s ease-in-out infinite;
}

.login-identity-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.login-identity-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loginIdentityCardFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes loginIdentityLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loginIdentityBarSweep {
    0% {
        transform: translateX(-70%);
    }

    100% {
        transform: translateX(270%);
    }
}

@keyframes loginIdentityDotPulse {
    0%,
    100% {
        transform: translateY(0) scale(0.82);
        opacity: 0.42;
    }

    50% {
        transform: translateY(-1px) scale(1);
        opacity: 1;
    }
}

.loader {
    border-top-color: #3b82f6;
    -webkit-animation: spinner 1.5s linear infinite;
    animation: spinner 1.5s linear infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.data-loading-card {
    width: min(92vw, 22.5rem);
    max-width: 22.5rem;
    box-shadow: 0 20px 50px rgba(18, 74, 92, 0.28);
    animation: dataLoadingFloat 2.8s ease-in-out infinite;
}

.data-loading-orbit {
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 25%, #dff9f7 0%, #b9eee8 42%, #88ddd2 100%);
    color: #0f7f77;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 18px rgba(15, 127, 119, 0.2);
}

.data-loading-orbit::before {
    content: "";
    position: absolute;
    inset: -0.22rem;
    border-radius: 999px;
    border: 2px solid transparent;
    border-top-color: rgba(15, 127, 119, 0.82);
    border-right-color: rgba(15, 127, 119, 0.36);
    animation: dataLoadingSpin 1.05s linear infinite;
}

.data-loading-track {
    position: relative;
    height: 0.24rem;
    border-radius: 999px;
    background: rgba(45, 130, 123, 0.12);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .login-identity-loading-card {
        width: min(95vw, 32rem);
        border-radius: 1.25rem;
        padding: 1rem 1.05rem !important;
    }

    .login-identity-loading-core {
        width: 2.9rem;
        height: 2.9rem;
    }
}

@media (min-width: 1024px) {
    .login-identity-loading-card {
        width: min(84vw, 36rem);
        border-radius: 1.45rem;
        padding: 1.35rem 1.6rem !important;
    }

    .login-identity-loading-core {
        width: 3.2rem;
        height: 3.2rem;
    }
}

.data-loading-track::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(14, 165, 153, 0.12), rgba(14, 165, 153, 0.66), rgba(14, 165, 153, 0.12));
    animation: dataLoadingSlide 1.15s ease-in-out infinite;
}

.data-loading-dot {
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: #14b8a6;
    animation: dataLoadingPulse 1.35s ease-in-out infinite;
}

.data-loading-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.data-loading-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes dataLoadingFloat {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes dataLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dataLoadingSlide {
    0% {
        transform: translateX(-70%);
    }

    100% {
        transform: translateX(270%);
    }
}

@keyframes dataLoadingPulse {
    0%,
    100% {
        transform: translateY(0) scale(0.82);
        opacity: 0.42;
    }

    50% {
        transform: translateY(-1px) scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-identity-loading-card,
    .login-identity-loading-core::before,
    .login-identity-loading-bar::before,
    .login-identity-loading-dot {
        animation: none !important;
    }
}

/* ซ่อน Scrollbar ของ Sidebar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animation การเปลี่ยนหน้า */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-premium-modal {
    background-size: 170% 170%;
    animation: loginModalAurora 18s ease-in-out infinite;
}

.login-premium-shell {
    isolation: isolate;
}

.login-premium-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 40%, rgba(255, 255, 255, 0) 78%);
    transform: translateX(-130%);
    animation: loginShellShimmer 6.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.login-premium-shell > * {
    position: relative;
    z-index: 1;
}

.login-premium-left {
    background-size: 190% 190%;
    animation: loginLeftGradientShift 12s ease-in-out infinite;
}

.login-premium-blob {
    animation: loginBlobFloat 9.5s ease-in-out infinite;
}

.login-premium-blob-alt {
    animation-delay: -4.2s;
}

.login-company-identity-stage {
    position: relative;
    isolation: isolate;
}

.login-company-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.login-company-sparkles span {
    position: absolute;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(189, 246, 239, 0.9) 48%, rgba(189, 246, 239, 0) 100%);
    box-shadow: 0 0 13px rgba(45, 212, 191, 0.55);
    animation: loginSparkleTwinkle 3.2s ease-in-out infinite;
}

.login-company-sparkles span:nth-child(1) {
    left: 12%;
    top: 10%;
    animation-delay: 0s;
}

.login-company-sparkles span:nth-child(2) {
    left: 68%;
    top: 8%;
    animation-delay: 0.7s;
}

.login-company-sparkles span:nth-child(3) {
    left: 5%;
    top: 44%;
    animation-delay: 1.35s;
}

.login-company-sparkles span:nth-child(4) {
    left: 82%;
    top: 46%;
    animation-delay: 2s;
}

.login-company-sparkles span:nth-child(5) {
    left: 27%;
    bottom: 8%;
    animation-delay: 2.6s;
}

.login-company-sparkles span:nth-child(6) {
    left: 62%;
    bottom: 5%;
    animation-delay: 0.45s;
}

.login-company-triangle {
    position: relative;
    z-index: 1;
    width: min(100%, 29rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.2rem;
    row-gap: 1rem;
    align-items: start;
}

.login-company-node {
    position: relative;
    min-width: 0;
    border-radius: 1.05rem;
    border: 1px solid rgba(113, 198, 190, 0.35);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(241, 255, 252, 0.58));
    box-shadow: 0 14px 26px rgba(24, 96, 99, 0.14);
    padding: 0.85rem 0.55rem 0.65rem;
    text-align: center;
    backdrop-filter: blur(3px);
    animation: loginCompanyCardFloat 5.7s ease-in-out infinite;
}

.login-company-node::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.login-company-node-top {
    grid-area: top;
    justify-self: center;
    width: min(100%, 17.5rem);
    animation-delay: -0.2s;
}

.login-company-node-left {
    grid-area: left;
    animation-delay: -1.6s;
}

.login-company-node-right {
    grid-area: right;
    animation-delay: -3.1s;
}

.login-company-logo-wrap {
    position: relative;
    width: 7.1rem;
    height: 6.2rem;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.97), rgba(236, 255, 251, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 20px rgba(16, 90, 98, 0.17);
    overflow: hidden;
}

.login-company-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid transparent;
    border-top-color: rgba(20, 184, 166, 0.44);
    border-right-color: rgba(251, 191, 36, 0.4);
    animation: loginLogoHaloSpin 4.8s linear infinite;
}

.login-company-logo-img {
    max-height: 5.1rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.17));
}

.login-company-fallback {
    font-size: 3.25rem;
    color: rgba(15, 127, 119, 0.93);
    filter: drop-shadow(0 8px 14px rgba(13, 148, 136, 0.25));
}

.login-company-name-en {
    margin-top: 0.72rem;
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.login-company-name-th {
    margin-top: 0.28rem;
    font-size: 0.74rem;
    line-height: 1.25;
    color: #526273;
}

.login-company-empty {
    grid-column: 1 / -1;
    padding: 1.2rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

.login-secure-orb {
    position: relative;
    overflow: visible;
    animation: loginSecureOrbFloat 4.6s ease-in-out infinite;
}

.login-secure-orb-media {
    position: relative;
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.login-secure-orb-media::before {
    content: "";
    position: absolute;
    inset: 0.12rem;
    border-radius: inherit;
    border: 1px solid rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.3);
    animation: loginSecureOrbPulseRing 2.8s ease-in-out infinite;
}

.login-secure-orb-logo {
    width: 3.45rem;
    height: 3.45rem;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.82) rotate(-5deg);
    filter: drop-shadow(0 9px 14px rgba(15, 23, 42, 0.18));
    transition: opacity 0.48s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-secure-orb-logo.login-secure-orb-logo--visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: loginSecureOrbLogoBreath 2.45s ease-in-out;
}

.login-secure-orb-fallback {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 1.35rem;
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.18));
}

.login-secure-orb::after {
    content: "";
    position: absolute;
    top: -45%;
    left: -85%;
    width: 62%;
    height: 190%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
    transform: rotate(16deg);
    animation: loginSecureGlint 4.4s ease-in-out infinite;
    pointer-events: none;
}

.login-submit-premium {
    position: relative;
    overflow: hidden;
    animation: loginButtonPulse 3.8s ease-in-out infinite;
}

.login-submit-premium:active {
    transform: translateY(1px) scale(0.992);
}

.login-submit-premium.is-submitting {
    cursor: wait;
    pointer-events: none;
    animation-duration: 1.8s;
    filter: saturate(0.92);
}

.login-submit-premium.is-submitting::before {
    animation-duration: 1.2s;
}

.login-submit-premium::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    transform: translateX(-125%);
    animation: loginButtonShine 3.4s ease-in-out infinite;
    pointer-events: none;
}

.login-submit-premium > * {
    position: relative;
    z-index: 1;
}

@keyframes loginModalAurora {
    0%,
    100% {
        background-position: 4% 8%;
    }

    50% {
        background-position: 96% 92%;
    }
}

@keyframes loginShellShimmer {
    0%,
    76% {
        transform: translateX(-130%);
        opacity: 0;
    }

    84% {
        opacity: 0.9;
    }

    100% {
        transform: translateX(136%);
        opacity: 0;
    }
}

@keyframes loginLeftGradientShift {
    0%,
    100% {
        background-position: 0% 14%;
    }

    50% {
        background-position: 100% 88%;
    }
}

@keyframes loginBlobFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-12px, 10px, 0) scale(1.08);
    }
}

@keyframes loginSparkleTwinkle {
    0%,
    100% {
        transform: translateY(0) scale(0.58);
        opacity: 0.32;
    }

    40% {
        transform: translateY(-5px) scale(1);
        opacity: 1;
    }

    70% {
        transform: translateY(-2px) scale(0.84);
        opacity: 0.65;
    }
}

@keyframes loginCompanyCardFloat {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes loginLogoHaloSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loginSecureOrbFloat {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes loginSecureGlint {
    0%,
    56% {
        transform: translateX(0) rotate(16deg);
        opacity: 0;
    }

    68% {
        opacity: 0.86;
    }

    100% {
        transform: translateX(285%) rotate(16deg);
        opacity: 0;
    }
}

@keyframes loginSecureOrbPulseRing {
    0% {
        transform: scale(0.92);
        opacity: 0.45;
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.28);
    }

    50% {
        opacity: 0.9;
    }

    100% {
        transform: scale(1.06);
        opacity: 0;
        box-shadow: 0 0 0 12px rgba(45, 212, 191, 0);
    }
}

@keyframes loginSecureOrbLogoBreath {
    0% {
        transform: scale(0.84) rotate(-4deg);
    }

    55% {
        transform: scale(1.05) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes loginButtonPulse {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(13, 148, 136, 0.28);
        transform: translateY(0px);
    }

    50% {
        box-shadow: 0 20px 34px rgba(13, 148, 136, 0.35);
        transform: translateY(-1px);
    }
}

@keyframes loginButtonShine {
    0%,
    60% {
        transform: translateX(-125%);
        opacity: 0;
    }

    68% {
        opacity: 1;
    }

    100% {
        transform: translateX(125%);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-premium-modal,
    .login-premium-shell::before,
    .login-premium-left,
    .login-premium-blob,
    .login-company-sparkles span,
    .login-company-node,
    .login-company-logo-wrap::before,
    .login-secure-orb,
    .login-secure-orb-media::before,
    .login-secure-orb-logo,
    .login-secure-orb::after,
    .login-submit-premium,
    .login-submit-premium::before {
        animation: none !important;
    }

    .login-secure-orb-logo {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .login-secure-orb-media {
        width: 4.05rem;
        height: 4.05rem;
    }

    .login-secure-orb-logo {
        width: 3.2rem;
        height: 3.2rem;
    }
}
