/* =====================================================================
   LOGIN PAGE — 2-column hero with custom CSS illustration
   Mirrors mockup: right (RTL primary) = form, left = dark navy promo
   ===================================================================== */

.login-shell {
    min-height: 100vh;
    display: grid;
    /* In RTL, first child (form) renders on the RIGHT; second (promo) on the LEFT */
    grid-template-columns: 1fr 1fr;
    background: #f7f8fb;
    position: relative;
    overflow: hidden;
}

/* In LTR force form on the right by reversing columns */
body.ltr .login-shell { direction: ltr; }
body.ltr .login-shell > .login-form-col { order: 2; }
body.ltr .login-shell > .login-promo-col { order: 1; }

/* Top-right floating language switcher */
.login-lang {
    position: absolute;
    top: 18px;
    inset-inline-end: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    z-index: 5;
    font-weight: 700;
    font-size: 13px;
}
.login-lang a { color: var(--c-text-muted, #6b7280); text-decoration: none; padding: 2px 6px; border-radius: 6px; transition: .15s; }
.login-lang a.active { color: var(--c-primary, #6c5ce7); background: rgba(108,92,231,.08); }
.login-lang .sep { color: #d1d5db; }

/* =================== FORM COLUMN (right in RTL) =================== */
.login-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #ffffff;
}
.login-form-wrap {
    width: 100%;
    max-width: 460px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}
.login-brand-mark {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6c5ce7, #4834d4);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 8px 18px rgba(108,92,231,.35);
}
.login-brand-mark .material-symbols-rounded { font-size: 26px; }
.login-brand-text .t1 { font-weight: 800; font-size: 18px; color: #1f2433; }
.login-brand-text .t2 { font-size: 12px; color: #8a93a6; margin-top: 2px; }

.login-title { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: #1f2433; text-align: start; }
.login-sub   { margin: 0 0 22px; font-size: 14px; color: #6b7280; text-align: start; }

.login-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px;
    font-weight: 600; font-size: 13.5px;
    margin-bottom: 16px;
}
.login-alert.err {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.login-alert .material-symbols-rounded { font-size: 20px; }

/* Form */
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-label {
    display: flex; flex-direction: column; gap: 7px;
}
.login-label > span:first-child {
    font-size: 13px; font-weight: 700; color: #374151;
    text-align: start;
}
.login-input {
    display: flex; align-items: center; gap: 10px;
    background: #f3f4f8;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 14px;
    height: 50px;
    transition: .15s;
}
.login-input:focus-within {
    background: #fff;
    border-color: var(--c-primary, #6c5ce7);
    box-shadow: 0 0 0 4px rgba(108,92,231,.12);
}
.login-input .material-symbols-rounded { color: #9ca3af; font-size: 20px; }
.login-input input {
    flex: 1; border: 0; background: transparent; outline: none;
    font-family: inherit; font-size: 14px; color: #1f2433;
    direction: ltr; text-align: start;
}
.login-input input::placeholder { color: #b6bcc8; }

/* Remember + forgot row */
.login-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 2px;
}
.login-forgot {
    color: var(--c-primary, #6c5ce7);
    font-size: 13px; font-weight: 700;
    text-decoration: none;
}
.login-forgot:hover { text-decoration: underline; }

/* iOS-style toggle */
.login-switch {
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; user-select: none;
}
.login-switch input { display: none; }
.login-switch .track {
    width: 38px; height: 22px; border-radius: 999px;
    background: #d1d5db;
    position: relative; transition: .2s;
}
.login-switch .thumb {
    position: absolute; top: 2px; inset-inline-start: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: .2s;
}
.login-switch input:checked + .track { background: var(--c-primary, #6c5ce7); }
.login-switch input:checked + .track .thumb { inset-inline-start: 18px; }
.login-switch .lbl { font-size: 13px; font-weight: 600; color: #4b5563; }

/* Buttons */
.login-btn {
    width: 100%; height: 50px;
    border: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit; font-weight: 700; font-size: 14.5px;
    cursor: pointer; transition: .15s;
    margin-top: 4px;
}
.login-btn.primary {
    background: linear-gradient(135deg, #6c5ce7, #4834d4);
    color: #fff;
    box-shadow: 0 10px 22px rgba(108,92,231,.35);
}
.login-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(108,92,231,.45); }
.login-btn.primary:active { transform: translateY(0); }
.login-btn.google {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #374151;
}
.login-btn.google:hover:not(:disabled) { background: #f9fafb; border-color: #d1d5db; }
.login-btn.google:disabled { opacity: .55; cursor: not-allowed; }

/* Divider */
.login-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 4px 0;
    color: #9ca3af; font-size: 12px;
}
.login-divider::before, .login-divider::after {
    content: ""; flex: 1; height: 1px; background: #e5e7eb;
}
.login-divider span { font-weight: 600; }

/* Foot */
.login-foot {
    text-align: center;
    color: #6b7280;
    font-size: 13.5px;
    margin-top: 14px;
}
.login-foot a { color: var(--c-primary, #6c5ce7); font-weight: 700; text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }

/* Demo credentials hint */
.login-credentials-hint {
    margin-top: 22px;
    background: #faf5ff;
    border: 1px dashed #d8b4fe;
    border-radius: 12px;
    padding: 12px 14px;
}
.login-credentials-hint .hint-title {
    display: flex; align-items: center; gap: 6px;
    color: #7c3aed; font-weight: 800; font-size: 13px;
    margin-bottom: 6px;
}
.login-credentials-hint .hint-title .material-symbols-rounded { font-size: 16px; }
.login-credentials-hint .hint-row {
    display: flex; gap: 8px; font-size: 13px; color: #4b5563;
    padding: 2px 0;
}
.login-credentials-hint .hint-row .k { font-weight: 700; min-width: 90px; }
.login-credentials-hint .hint-row .v { direction: ltr; color: #1f2433; font-weight: 700; }

/* =================== PROMO COLUMN (left in RTL) =================== */
.login-promo-col {
    position: relative;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(108,92,231,.55), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(72,52,212,.55), transparent 55%),
        linear-gradient(160deg, #0b1638 0%, #131c47 50%, #0a1232 100%);
    color: #fff;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
/* Subtle dot grid overlay */
.login-promo-col::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.login-promo-inner {
    position: relative; z-index: 1;
    max-width: 520px;
    width: 100%;
}

.promo-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.promo-mark {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    display: grid; place-items: center;
    backdrop-filter: blur(8px);
}
.promo-mark .material-symbols-rounded { font-size: 26px; color: #fff; }
.promo-brand-text .t1 { font-weight: 800; font-size: 18px; }
.promo-brand-text .t2 { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

.promo-slogan {
    font-size: 38px; font-weight: 800; line-height: 1.25;
    margin: 0 0 10px;
}
.promo-slogan .hl {
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.promo-sub {
    color: rgba(255,255,255,.7);
    font-size: 14.5px; line-height: 1.7;
    margin: 0 0 28px;
    max-width: 440px;
}

/* CSS-only laptop illustration */
.promo-illu {
    position: relative;
    height: 220px;
    margin: 10px 0 28px;
    display: flex; align-items: center; justify-content: center;
}
.laptop {
    position: relative;
    width: 320px;
}
.laptop .screen {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 14px 14px 6px 6px;
    border: 2px solid rgba(255,255,255,.12);
    padding: 14px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.05);
}
.laptop .screen .screen-bar {
    height: 8px; width: 60px; background: rgba(108,92,231,.7); border-radius: 4px; margin-bottom: 12px;
}
.laptop .screen .screen-row {
    height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); margin-bottom: 8px;
}
.laptop .screen .screen-row.r1 { width: 90%; }
.laptop .screen .screen-row.r2 { width: 70%; }
.laptop .screen .screen-row.r3 { width: 50%; }
.laptop .screen .screen-chart {
    display: flex; align-items: flex-end; gap: 6px;
    height: 60px; margin-top: 14px;
}
.laptop .screen .screen-chart span {
    flex: 1; height: var(--h, 50%);
    background: linear-gradient(180deg, #a78bfa, #6c5ce7);
    border-radius: 4px 4px 1px 1px;
}
.laptop .base {
    height: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
    border-radius: 0 0 14px 14px;
    width: 110%;
    margin-inline-start: -5%;
    box-shadow: 0 18px 28px rgba(0,0,0,.35);
}

/* Floating accent cards around the laptop */
.float-card {
    position: absolute;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
    animation: float 4.5s ease-in-out infinite;
}
.float-card .material-symbols-rounded { color: #a78bfa; font-size: 22px; }
.float-card b { display: block; font-size: 13.5px; font-weight: 800; }
.float-card small { color: rgba(255,255,255,.65); font-size: 11px; }
.float-card.f1 { top: -6px; inset-inline-start: -30px; animation-delay: .2s; }
.float-card.f2 { top: 60px; inset-inline-end: -40px; animation-delay: 1.4s; }
.float-card.f3 { bottom: -6px; inset-inline-start: -10px; animation-delay: 2.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Feature mini-grid */
.promo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.feat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 12px;
    display: flex; align-items: center; gap: 10px;
    transition: .2s;
}
.feat:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); }
.feat-ico {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(108,92,231,.25);
    display: grid; place-items: center;
}
.feat-ico .material-symbols-rounded { color: #c4b5fd; font-size: 20px; }
.feat-txt b { display: block; font-size: 13px; font-weight: 800; }
.feat-txt span { color: rgba(255,255,255,.55); font-size: 11px; }

.promo-lock {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.65);
    font-size: 12.5px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.promo-lock .material-symbols-rounded { font-size: 16px; color: #34d399; }

/* =================== Responsive: stack columns =================== */
@media (max-width: 980px) {
    .login-shell { grid-template-columns: 1fr; }
    body.ltr .login-shell > .login-form-col,
    body.ltr .login-shell > .login-promo-col { order: unset; }
    .login-promo-col { display: none; }
    .login-form-col  { padding: 80px 20px 40px; }
}
