/* Rabta Premium Login — split-screen dual theme */

.login-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(1100px, 96vw);
    min-height: min(640px, 90vh);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: loginReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

@keyframes loginReveal {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Brand panel */
.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow: hidden;
    background: linear-gradient(145deg, #050d1a 0%, #0a1628 40%, #0d2137 100%);
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 229, 212, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.login-brand-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: brandFloat 6s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.rabta-logo-svg {
    width: 160px;
    height: 160px;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 24px rgba(0, 229, 212, 0.35));
}

.rabta-logo-svg.login-brand-size {
    width: 180px;
    height: 180px;
}

.login-brand-name-en {
    letter-spacing: 0.45em;
    font-size: 0.75rem;
    color: rgba(0, 229, 212, 0.7);
    margin: 0.5rem 0 1.25rem;
    font-weight: 300;
}

.login-brand-tagline-ar {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 20px rgba(0, 229, 212, 0.2);
}

.login-brand-tagline-en {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.02em;
}

/* Floating decorative shapes */
.login-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: shapeDrift 12s ease-in-out infinite;
}

.login-shape-1 {
    width: 120px; height: 120px;
    top: 10%; left: 8%;
    background: radial-gradient(circle, rgba(0,229,212,0.12) 0%, transparent 70%);
    animation-delay: 0s;
}

.login-shape-2 {
    width: 80px; height: 80px;
    bottom: 15%; right: 10%;
    border: 1px solid rgba(99,102,241,0.25);
    animation-delay: -4s;
}

.login-shape-3 {
    width: 40px; height: 40px;
    top: 40%; right: 15%;
    background: rgba(0,229,212,0.15);
    animation-delay: -8s;
}

@keyframes shapeDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(12px, -18px) rotate(120deg); }
    66% { transform: translate(-8px, 10px) rotate(240deg); }
}

/* Form panel */
.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    background: linear-gradient(180deg, #070f1c 0%, #0a1525 100%);
    position: relative;
}

.login-form-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,229,212,0.2), transparent);
}

.login-welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.login-welcome-sub {
    font-size: 0.9rem;
    color: rgba(203, 213, 225, 0.92) !important;
    margin-bottom: 2rem;
}

.login-field-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.login-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 229, 212, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.login-field-icon .rabta-icon {
    width: 18px;
    height: 18px;
    color: currentColor !important;
}

.login-field-input {
    width: 100%;
    background: rgba(10, 20, 38, 0.92) !important;
    border: 1.5px solid rgba(0, 229, 212, 0.22) !important;
    border-radius: 12px !important;
    padding: 0.85rem 2.75rem 0.85rem 1rem !important;
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-field-input:focus {
    border-color: rgba(0, 229, 212, 0.65) !important;
    box-shadow: 0 0 0 4px rgba(0, 229, 212, 0.14), 0 0 24px rgba(0, 229, 212, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    outline: none !important;
    background: rgba(8, 18, 34, 0.98) !important;
    color: #ffffff !important;
}

.login-field-input::placeholder {
    color: rgba(186, 230, 253, 0.52) !important;
    opacity: 1 !important;
}

.login-pwd-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.82);
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    transition: color 0.2s;
}

.login-pwd-toggle:hover { color: #00e5d4; }

.login-forgot-link {
    display: block;
    text-align: left;
    color: #00e5d4 !important;
    font-size: 0.85rem;
    text-decoration: none !important;
    margin: -0.5rem 0 1.5rem;
    transition: color 0.2s;
}

.login-forgot-link:hover { color: #5eead4 !important; }

.login-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00c9b7 0%, #0a75ad 50%, #088da5 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.9rem 1.5rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 30px rgba(0, 201, 183, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.login-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.login-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 40px rgba(0, 201, 183, 0.4) !important;
}

.login-btn-primary:hover::before { left: 100%; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: rgba(100, 116, 139, 0.7);
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(51, 65, 85, 0.6);
}

.login-btn-sso {
    width: 100%;
    background: transparent !important;
    border: 1.5px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.5rem !important;
    color: rgba(203, 213, 225, 0.9) !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    transition: all 0.3s !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn-sso:hover {
    border-color: rgba(0, 229, 212, 0.4) !important;
    background: rgba(0, 229, 212, 0.05) !important;
    color: #ffffff !important;
}

.login-error-msg {
    color: #fb7185;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    animation: shakeError 0.5s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.login-footer-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: rgba(203, 213, 225, 0.88);
    letter-spacing: 0.02em;
    animation: loginFooterFade 1.2s ease 0.4s both;
}

.login-footer-text strong {
    color: #00e5d4;
    font-weight: 800;
}

.login-footer-text small {
    color: rgba(148, 163, 184, 0.9);
}

@keyframes loginFooterFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .login-footer-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .login-footer-text small {
    color: rgba(203, 213, 225, 0.8) !important;
}

[data-theme="dark"] .login-footer-text strong {
    color: #00e5d4 !important;
    text-shadow: 0 0 12px rgba(0, 229, 212, 0.25);
}

[data-theme="aurora"] .login-footer-text {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="aurora"] .login-footer-text small {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="aurora"] .login-footer-text strong {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(6, 72, 108, 0.2);
}

body:has(.login-shell)[data-theme="dark"] .login-form-panel .login-footer-text,
body:has(.login-shell)[data-theme="dark"] .login-form-panel .login-footer-text small {
    color: rgba(255, 255, 255, 0.9) !important;
}

body:has(.login-shell)[data-theme="dark"] .login-form-panel .login-footer-text strong {
    color: #00e5d4 !important;
}

body:has(.login-shell)[data-app-theme="light"][data-theme="dark"] .login-form-panel .login-footer-text,
body:has(.login-shell)[data-app-theme="light"][data-theme="dark"] .login-form-panel .login-footer-text small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ── Login top bar — unified glass chrome (uses data-theme only) ── */
.login-topbar {
    position: fixed;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 50;
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    pointer-events: none;
    animation: loginWidgetFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.login-chrome {
    position: relative;
    pointer-events: auto;
}

.login-chrome > button,
.login-chrome__body {
    cursor: pointer;
}

button.login-chrome,
.login-chrome > button {
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    outline: none;
    box-shadow: none;
}

.login-chrome--icon > .login-chrome__body {
    overflow: hidden;
}

.login-chrome--lang {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.login-chrome__body {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(0, 229, 212, 0.28);
    border-radius: 16px;
    background: rgba(8, 16, 32, 0.78);
    backdrop-filter: blur(16px);
    color: #00e5d4;
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.login-chrome__body--pill {
    width: auto;
    min-width: 148px;
    height: 48px;
    padding: 0 0.9rem 0 0.65rem;
    gap: 0.55rem;
    justify-content: flex-start;
}

.login-chrome__aura {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.65;
    background: linear-gradient(135deg, rgba(0, 229, 212, 0.28), rgba(99, 102, 241, 0.18));
    animation: loginChromeAura 3.2s ease-in-out infinite;
}

.login-chrome--icon .login-chrome__body .login-chrome__aura {
    border-radius: 50%;
    inset: -3px;
}

.login-chrome__aura--spin {
    border-radius: 999px;
    background: transparent;
    border: 1.5px dashed rgba(0, 229, 212, 0.35);
    animation: loginChromeOrbit 16s linear infinite;
}

.login-chrome__aura--orbit {
    border-radius: 18px;
    background: transparent;
    border: 1.5px dashed rgba(0, 229, 212, 0.3);
    animation: loginChromeOrbit 20s linear infinite;
}

@keyframes loginChromeAura {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 0.85; transform: scale(1.03); }
}

@keyframes loginChromeOrbit {
    to { transform: rotate(360deg); }
}

.login-chrome__body .rabta-icon,
.login-chrome__dropdown-title .rabta-icon,
.login-chrome__dropdown-close .rabta-icon,
.login-chrome__offer-icon .rabta-icon,
.login-chrome__offer-play {
    width: 20px;
    height: 20px;
    color: currentColor !important;
    position: relative;
    z-index: 1;
}

.login-chrome__icon-wrap {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 229, 212, 0.12);
    color: #00e5d4;
}

.login-chrome__icon-wrap--pulse .rabta-icon {
    animation: loginLangIdle 4s ease-in-out infinite;
}

@keyframes loginLangIdle {
    0%, 100% { transform: rotate(0deg); opacity: 0.85; }
    50% { transform: rotate(8deg); opacity: 1; }
}

.login-chrome--lang.is-open .login-chrome__icon-wrap--pulse .rabta-icon,
.login-chrome__body--pill:hover .login-chrome__icon-wrap--pulse .rabta-icon {
    animation: loginLangSpin 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginLangSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-chrome__text {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc !important;
    white-space: nowrap;
}

.login-chrome__caret {
    position: relative;
    z-index: 1;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(0, 229, 212, 0.9);
    margin-inline-start: auto;
    transition: transform 0.25s ease;
}

.login-chrome--lang.is-open .login-chrome__caret {
    transform: rotate(180deg);
}

.login-chrome__body:hover,
.login-chrome.is-open .login-chrome__body {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 212, 0.55);
    box-shadow: 0 14px 40px rgba(0, 229, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #5eead4;
}

.login-chrome__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    z-index: 60;
    min-width: min(220px, 88vw);
    padding: 0.5rem;
    border-radius: 16px;
    background: rgba(6, 14, 28, 0.94);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(0, 229, 212, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.login-chrome--lang .login-chrome__dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
}

.login-chrome--icon .login-chrome__dropdown {
    right: 0;
    left: auto;
}

.login-chrome__dropdown--wide {
    min-width: min(320px, 92vw);
}

.login-chrome__dropdown.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.login-chrome--lang .login-chrome__dropdown.is-visible {
    transform: translateX(-50%) translateY(0) scale(1);
}

.login-chrome__dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(0, 229, 212, 0.12);
    margin-bottom: 0.35rem;
}

.login-chrome__dropdown-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0 !important;
}

.login-chrome__dropdown-close {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.login-chrome__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.72rem 0.8rem;
    margin-bottom: 0.28rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9 !important;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-chrome__option:last-child { margin-bottom: 0; }

.login-chrome__option:hover {
    transform: translateY(-1px);
    background: rgba(0, 229, 212, 0.1);
    border-color: rgba(0, 229, 212, 0.28);
}

.login-chrome__option.is-active {
    background: rgba(0, 229, 212, 0.16) !important;
    border-color: rgba(0, 229, 212, 0.4) !important;
    color: #ffffff !important;
}

.login-chrome__check {
    width: 17px !important;
    height: 17px !important;
    color: #00e5d4 !important;
}

.login-chrome__offer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.62rem 0.68rem;
    margin-bottom: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
    text-align: start;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-chrome__offer:last-child { margin-bottom: 0; }

.login-chrome__offer:hover {
    transform: translateX(-3px);
    background: rgba(0, 229, 212, 0.1);
    border-color: rgba(0, 229, 212, 0.28);
}

.login-chrome__offer-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 212, 0.12);
    border: 1px solid rgba(0, 229, 212, 0.22);
    color: #00e5d4;
}

.login-chrome__offer-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.login-chrome__offer-text strong {
    font-size: 0.76rem;
    color: #f8fafc !important;
}

.login-chrome__offer-text small {
    font-size: 0.64rem;
    color: #94a3b8 !important;
}

.login-chrome__offer-play {
    color: #00e5d4 !important;
    opacity: 0.9;
}

/* Dark login theme — frosted glass chrome */
[data-theme="dark"] .login-chrome__body {
    background: linear-gradient(155deg, rgba(8, 18, 36, 0.72) 0%, rgba(6, 14, 28, 0.55) 55%, rgba(0, 229, 212, 0.06) 100%);
    border: 1px solid rgba(0, 229, 212, 0.28);
    color: #00e5d4;
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

[data-theme="dark"] .login-chrome--icon .login-chrome__body {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

[data-theme="dark"] .login-chrome__body--pill {
    border-radius: 999px;
    min-width: 136px;
    height: 46px;
    padding: 0 1rem 0 0.55rem;
}

[data-theme="dark"] .login-chrome__aura {
    background: linear-gradient(135deg, rgba(0, 229, 212, 0.2), rgba(99, 102, 241, 0.12));
    opacity: 0.5;
}

[data-theme="dark"] .login-chrome__aura--spin,
[data-theme="dark"] .login-chrome__aura--orbit {
    border-color: rgba(0, 229, 212, 0.28);
    opacity: 0.55;
}

[data-theme="dark"] .login-chrome__icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 229, 212, 0.1);
    border: 1px solid rgba(0, 229, 212, 0.22);
    color: #00e5d4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .login-chrome__text {
    color: #f8fafc !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .login-chrome__caret {
    border-top-color: rgba(0, 229, 212, 0.9);
}

[data-theme="dark"] .login-chrome__body .rabta-icon {
    color: #00e5d4 !important;
    filter: drop-shadow(0 0 8px rgba(0, 229, 212, 0.35));
}

[data-theme="dark"] .login-chrome__body:hover,
[data-theme="dark"] .login-chrome.is-open .login-chrome__body {
    transform: translateY(-3px);
    background: linear-gradient(155deg, rgba(10, 22, 42, 0.82) 0%, rgba(8, 18, 34, 0.68) 50%, rgba(0, 229, 212, 0.1) 100%);
    border-color: rgba(0, 229, 212, 0.48);
    box-shadow:
        0 16px 44px rgba(0, 229, 212, 0.16),
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #5eead4;
}

[data-theme="dark"] .login-chrome__dropdown {
    background: linear-gradient(165deg, rgba(8, 16, 32, 0.96) 0%, rgba(6, 14, 28, 0.94) 100%);
    border-color: rgba(0, 229, 212, 0.22);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Aurora login theme — frosted glass chrome (no solid white blocks) */
[data-theme="aurora"] .login-chrome__body {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 48%, rgba(0, 229, 212, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    box-shadow:
        0 10px 36px rgba(6, 72, 108, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(0, 60, 90, 0.06);
    backdrop-filter: blur(20px) saturate(1.45);
    -webkit-backdrop-filter: blur(20px) saturate(1.45);
}

[data-theme="aurora"] .login-chrome--icon .login-chrome__body {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

[data-theme="aurora"] .login-chrome__body--pill {
    border-radius: 999px;
    min-width: 136px;
    height: 46px;
    padding: 0 1rem 0 0.55rem;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.12) 55%, rgba(0, 229, 212, 0.1) 100%);
}

[data-theme="aurora"] .login-chrome__aura {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 229, 212, 0.12));
    opacity: 0.45;
}

[data-theme="aurora"] .login-chrome__aura--spin,
[data-theme="aurora"] .login-chrome__aura--orbit {
    border-color: rgba(255, 255, 255, 0.38);
    opacity: 0.55;
}

[data-theme="aurora"] .login-chrome__icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

[data-theme="aurora"] .login-chrome__text {
    color: #ffffff !important;
    text-shadow: 0 1px 10px rgba(6, 72, 108, 0.28);
    letter-spacing: 0.01em;
}

[data-theme="aurora"] .login-chrome__caret {
    border-top-color: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 1px 2px rgba(6, 72, 108, 0.2));
}

[data-theme="aurora"] .login-chrome__body .rabta-icon {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 6px rgba(6, 72, 108, 0.22));
}

[data-theme="aurora"] .login-chrome__body:hover,
[data-theme="aurora"] .login-chrome.is-open .login-chrome__body {
    transform: translateY(-3px);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(0, 229, 212, 0.14) 100%);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 16px 44px rgba(0, 229, 212, 0.22),
        0 8px 24px rgba(6, 72, 108, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

[data-theme="aurora"] .login-chrome__dropdown {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 249, 255, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 56px rgba(6, 72, 108, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

[data-theme="aurora"] .login-chrome__dropdown-head {
    border-bottom-color: rgba(10, 117, 173, 0.12);
}

[data-theme="aurora"] .login-chrome__dropdown-title {
    color: #0c4a6e !important;
}

[data-theme="aurora"] .login-chrome__option {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(10, 117, 173, 0.1);
    color: #0f172a !important;
}

[data-theme="aurora"] .login-chrome__option:hover {
    background: rgba(0, 229, 212, 0.14);
    border-color: rgba(0, 229, 212, 0.35);
}

[data-theme="aurora"] .login-chrome__option.is-active {
    background: linear-gradient(135deg, rgba(0, 229, 212, 0.22), rgba(10, 117, 173, 0.12)) !important;
    border-color: rgba(0, 229, 212, 0.45) !important;
    color: #0a4a6e !important;
}

[data-theme="aurora"] .login-chrome__check {
    color: #0a75ad !important;
}

[data-theme="aurora"] .login-chrome__offer {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(10, 117, 173, 0.1);
}

[data-theme="aurora"] .login-chrome__offer:hover {
    background: rgba(0, 229, 212, 0.14);
    border-color: rgba(0, 229, 212, 0.32);
}

[data-theme="aurora"] .login-chrome__offer-text strong {
    color: #0c4a6e !important;
}

[data-theme="aurora"] .login-chrome__offer-text small {
    color: #64748b !important;
}

[data-theme="aurora"] .login-chrome__offer-icon {
    background: linear-gradient(135deg, rgba(10, 117, 173, 0.12), rgba(0, 229, 212, 0.15));
    border-color: rgba(10, 117, 173, 0.18);
    color: #0a75ad;
}

[data-theme="aurora"] .login-chrome__offer-play {
    color: #0a75ad !important;
}

[data-theme="aurora"] .login-chrome__dropdown-close {
    color: #0c4a6e !important;
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(10, 117, 173, 0.14);
}

[data-theme="aurora"] .login-chrome__dropdown-close:hover {
    background: rgba(0, 229, 212, 0.18);
    border-color: rgba(0, 229, 212, 0.35);
}

@keyframes loginWidgetFloat {
    from { opacity: 0; transform: translateY(-12px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Theme 1 — Aurora (bright supply chain) */
[data-theme="aurora"] .login-split {
    box-shadow: 0 40px 80px rgba(10, 117, 173, 0.25), 0 0 0 1px rgba(255,255,255,0.15);
}

[data-theme="aurora"] .login-brand-panel {
    background: linear-gradient(145deg, rgba(6,90,135,0.85) 0%, rgba(10,117,173,0.75) 50%, rgba(35,213,171,0.65) 100%);
    backdrop-filter: blur(20px);
}

[data-theme="aurora"] .login-form-panel {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
}

[data-theme="aurora"] .login-welcome-title { color: #ffffff; }
[data-theme="aurora"] .login-welcome-sub { color: rgba(255, 255, 255, 0.92) !important; }
[data-theme="aurora"] .login-field-input {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}
[data-theme="aurora"] .login-field-input::placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}

[data-theme="aurora"] .login-field-input::-webkit-input-placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}

[data-theme="aurora"] .login-field-input::-moz-placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}
[data-theme="aurora"] .login-field-icon {
    color: #0a75ad !important;
}

[data-theme="aurora"] .login-form-panel::after {
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15), transparent);
}

[data-theme="aurora"] .login-store-badge {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 8px 28px rgba(6, 72, 108, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

[data-theme="aurora"] .login-store-badge-text strong,
[data-theme="aurora"] .login-store-badge-icon {
    color: #ffffff !important;
}

[data-theme="aurora"] .login-store-badge-text small {
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .login-store-badge {
    background: rgba(8, 16, 32, 0.82) !important;
    border-color: rgba(0, 229, 212, 0.22) !important;
}

[data-theme="dark"] .login-store-badge-text strong,
[data-theme="dark"] .login-store-badge-icon {
    color: #f8fafc !important;
}

[data-theme="dark"] .login-store-badge-text small {
    color: #94a3b8 !important;
}

/* Isolate login form from global app theme overrides */
body:has(.login-shell) .login-form-panel .form-control.login-field-input {
    background: rgba(10, 20, 38, 0.92) !important;
    color: #f8fafc !important;
    border-color: rgba(0, 229, 212, 0.22) !important;
}

body:has(.login-shell) .login-form-panel .form-control.login-field-input::placeholder {
    color: rgba(186, 230, 253, 0.52) !important;
}

body:has(.login-shell) .login-form-panel .login-field-icon {
    color: rgba(0, 229, 212, 0.88) !important;
}

body:has(.login-shell) .login-form-panel .login-welcome-sub {
    color: rgba(203, 213, 225, 0.92) !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-form-panel .form-control.login-field-input {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-form-panel .login-field-icon {
    color: #0a75ad !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-form-panel .form-control.login-field-input::placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-form-panel .form-control.login-field-input::-webkit-input-placeholder {
    color: #475569 !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-form-panel .form-control.login-field-input {
    -webkit-text-fill-color: #0f172a !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-pwd-toggle {
    color: #64748b !important;
}

body:has(.login-shell)[data-theme="aurora"] .login-pwd-toggle:hover {
    color: #0a75ad !important;
}

/* Isolate login chrome from global app theme button overrides */
html[data-theme="dark"] .login-topbar .login-chrome__body,
body[data-theme="dark"] .login-topbar .login-chrome__body {
    background: linear-gradient(155deg, rgba(8, 18, 36, 0.72) 0%, rgba(6, 14, 28, 0.55) 55%, rgba(0, 229, 212, 0.06) 100%) !important;
    border: 1px solid rgba(0, 229, 212, 0.28) !important;
    color: #00e5d4 !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(18px) saturate(1.35) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
}

html[data-theme="dark"] .login-topbar .login-chrome--icon .login-chrome__body,
body[data-theme="dark"] .login-topbar .login-chrome--icon .login-chrome__body {
    border-radius: 50% !important;
}

html[data-theme="dark"] .login-topbar .login-chrome__body--pill,
body[data-theme="dark"] .login-topbar .login-chrome__body--pill {
    border-radius: 999px !important;
}

html[data-theme="dark"] .login-topbar .login-chrome__icon-wrap,
body[data-theme="dark"] .login-topbar .login-chrome__icon-wrap {
    background: rgba(0, 229, 212, 0.1) !important;
    border: 1px solid rgba(0, 229, 212, 0.22) !important;
    color: #00e5d4 !important;
}

html[data-theme="dark"] .login-topbar .login-chrome__body .rabta-icon,
body[data-theme="dark"] .login-topbar .login-chrome__body .rabta-icon {
    color: #00e5d4 !important;
}

html[data-theme="aurora"] .login-topbar .login-chrome__body,
body[data-theme="aurora"] .login-topbar .login-chrome__body {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 48%, rgba(0, 229, 212, 0.08) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 36px rgba(6, 72, 108, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(20px) saturate(1.45) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.45) !important;
}

html[data-theme="aurora"] .login-topbar .login-chrome--icon .login-chrome__body,
body[data-theme="aurora"] .login-topbar .login-chrome--icon .login-chrome__body {
    border-radius: 50% !important;
}

html[data-theme="aurora"] .login-topbar .login-chrome__body--pill,
body[data-theme="aurora"] .login-topbar .login-chrome__body--pill {
    border-radius: 999px !important;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.12) 55%, rgba(0, 229, 212, 0.1) 100%) !important;
}

html[data-theme="aurora"] .login-topbar .login-chrome__icon-wrap,
body[data-theme="aurora"] .login-topbar .login-chrome__icon-wrap {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

html[data-theme="aurora"] .login-topbar .login-chrome__text,
body[data-theme="aurora"] .login-topbar .login-chrome__text {
    color: #ffffff !important;
}

html[data-theme="aurora"] .login-topbar .login-chrome__body .rabta-icon,
body[data-theme="aurora"] .login-topbar .login-chrome__body .rabta-icon {
    color: #ffffff !important;
}

/* App store badges */
.login-store-badges {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    animation: loginWidgetFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.login-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem 0.45rem 0.6rem;
    border-radius: 14px;
    text-decoration: none !important;
    background: rgba(10, 18, 32, 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-store-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 212, 0.35);
    box-shadow: 0 14px 36px rgba(0, 229, 212, 0.15);
}

.login-store-badge-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #f8fafc;
}

.login-store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.login-store-badge-text small {
    font-size: 0.55rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-store-badge-text strong {
    font-size: 0.78rem;
    color: #f1f5f9;
    font-weight: 700;
}

.login-store-badge--apple .login-store-badge-icon { font-size: 1.35rem; }
.login-store-badge--google .login-store-badge-icon { font-size: 0.95rem; color: #00e5d4; }

/* Responsive */
@media (max-width: 900px) {
    .login-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand-panel {
        padding: 2rem 1.5rem;
        min-height: 280px;
    }

    .rabta-logo-svg.login-brand-size {
        width: 120px;
        height: 120px;
    }

    .login-form-panel {
        padding: 2rem 1.75rem;
    }

    .login-form-panel::after { display: none; }

    .login-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
        gap: 0.45rem;
    }

    .login-chrome__body--pill {
        min-width: 48px;
        width: 48px;
        padding: 0;
        justify-content: center;
    }

    .login-chrome__text,
    .login-chrome__caret {
        display: none;
    }

    .login-chrome--lang .login-chrome__dropdown {
        left: auto;
        right: 50%;
        transform: translateX(35%) translateY(-8px) scale(0.97);
    }

    .login-chrome--lang .login-chrome__dropdown.is-visible {
        transform: translateX(35%) translateY(0) scale(1);
    }

    .login-chrome__dropdown--wide {
        min-width: min(300px, calc(100vw - 1.5rem));
    }

    .login-store-badges {
        bottom: 12px;
        left: 12px;
        transform: scale(0.92);
        transform-origin: bottom left;
    }
}
