/* =====================================================================
   Option One ERP/CRM - Login Page Styles
   Premium split-screen layout, gold accents, theatrical detailing.
   ===================================================================== */

body.login-body {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Decorative background -- subtle radial glow + diagonal sheen */
body.login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px circle at 80% 20%, var(--gold-glow), transparent 60%),
        radial-gradient(900px circle at 10% 90%, rgba(212,175,55,0.08), transparent 65%);
    z-index: 0;
}

/* Optional grain overlay for premium feel */
body.login-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    z-index: 0;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* ---------- Left hero panel ------------------------------------- */
.login-hero {
    position: relative;
    padding: 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(160deg, var(--bg-elev-1) 0%, var(--bg) 70%);
    border-inline-end: 1px solid var(--border);
    overflow: hidden;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: auto -30% -30% auto;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
    pointer-events: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-logo img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 18px var(--gold-glow));
}

.hero-headline {
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}
html[lang="ar"] .hero-eyebrow {
    letter-spacing: 0.18em;
    text-transform: none;
}
.hero-title {
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--text);
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}
.hero-sub {
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.7;
    font-size: 16px;
}

.hero-foot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* ---------- Right form panel ------------------------------------ */
.login-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg);
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    padding: 1px;
    background: linear-gradient(160deg, var(--gold-glow), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.login-card h2 {
    font-size: 26px;
    margin: 0 0 8px;
}
.login-card .login-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 26px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 12px;
    margin: 22px 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-foot {
    margin-top: 26px;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
}

/* ---------- Caps Lock indicator --------------------------------- */
.caps-warning {
    display: none;
    color: var(--warning);
    font-size: 12px;
    margin-top: 6px;
}
.caps-warning.show { display: block; }

/* ---------- Mobile ---------------------------------------------- */
@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-hero {
        padding: 36px 28px 24px;
        border-inline-end: none;
        border-bottom: 1px solid var(--border);
    }
    .hero-foot { display: none; }
    .brand-logo img { width: 90px; }
    .hero-title { font-size: 30px; }
    .login-card-wrap { padding: 28px 20px 60px; }
    .login-card { padding: 28px 22px; }
}
