/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE — Enterprise Cash Management
   Matches the design tokens from newlayout.css exactly:
     Navy    #0a1628 / #0f1e3c
     Accent  #3b82f6
     BG      #f0f4f8
═══════════════════════════════════════════════════════════════ */

/* ── Page ───────────────────────────────────────────────────── */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.lp-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f0f4f8;
}

/* ── Left panel — brand / hero ──────────────────────────────── */
.lp-hero {
    background: linear-gradient(160deg, #0a1628 0%, #0f1e3c 60%, #1e3a5f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* subtle mesh overlay */
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, rgba(59,130,246,.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 75% 70%, rgba(29,78,216,.14) 0%, transparent 70%);
    pointer-events: none;
}

.lp-hero-inner { position: relative; text-align: center; color: #fff; }

.lp-hero-icon {
    width: 88px; height: 88px;
    background: rgba(59,130,246,.18);
    border: 2px solid rgba(59,130,246,.35);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #60a5fa;
    margin-bottom: 1.75rem;
    box-shadow: 0 0 32px rgba(59,130,246,.25);
}

.lp-hero-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.lp-hero-subtitle {
    font-size: .95rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 2.5rem;
}

.lp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

.lp-badge {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.lp-badge i { color: #60a5fa; font-size: .85rem; }

.lp-hero-footer {
    position: absolute;
    bottom: 1.5rem;
    font-size: .75rem;
    color: rgba(255,255,255,.3);
}

/* ── Right panel — form ─────────────────────────────────────── */
.lp-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.lp-card {
    width: 100%;
    max-width: 420px;
}

.lp-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0a1628;
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}

.lp-card-sub {
    font-size: .88rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* ── Language switcher ──────────────────────────────────────── */
.lp-lang-switcher {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
}

.lp-lang-btn {
    flex: 1;
    padding: .55rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    text-align: center;
}

.lp-lang-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.lp-lang-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,.3);
}

/* hidden radio drives the state */
input[name="LangId"] { display: none; }

/* ── Form fields ────────────────────────────────────────────── */
.lp-field { margin-bottom: 1.25rem; }

.lp-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .45rem;
    letter-spacing: .01em;
}

.lp-input-wrap {
    position: relative;
}

.lp-input-wrap i.lp-icon {
    position: absolute;
    top: 50%; left: .9rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

/* RTL — icon on right */
[dir="rtl"] .lp-input-wrap i.lp-icon { left: auto; right: .9rem; }

.lp-input {
    width: 100%;
    padding: .72rem 1rem .72rem 2.4rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: .95rem;
    color: #0a1628;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

[dir="rtl"] .lp-input { padding: .72rem 2.4rem .72rem 1rem; text-align: right; }

.lp-input::placeholder { color: #cbd5e1; }

.lp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.lp-input.is-invalid { border-color: #ef4444; }
.lp-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }

/* password toggle */
.lp-pwd-toggle {
    position: absolute;
    top: 50%; right: .85rem;
    transform: translateY(-50%);
    background: none; border: none;
    color: #94a3b8; cursor: pointer;
    padding: 0; font-size: 1rem;
    line-height: 1;
    transition: color .12s;
}

[dir="rtl"] .lp-pwd-toggle { right: auto; left: .85rem; }

.lp-pwd-toggle:hover { color: #3b82f6; }

.lp-error {
    font-size: .78rem;
    color: #ef4444;
    margin-top: .3rem;
    display: block;
}

/* ── Remember me ────────────────────────────────────────────── */
.lp-remember {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.5rem;
}

.lp-check {
    width: 16px; height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.lp-check-label {
    font-size: .85rem;
    color: #64748b;
    cursor: pointer;
}

/* ── Submit button ──────────────────────────────────────────── */
.lp-submit {
    width: 100%;
    padding: .8rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(59,130,246,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.lp-submit:hover {
    opacity: .92;
    box-shadow: 0 6px 20px rgba(59,130,246,.45);
    transform: translateY(-1px);
}

.lp-submit:active { transform: translateY(0); opacity: 1; }

/* ── Validation alert ───────────────────────────────────────── */
.lp-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    padding: .65rem .9rem;
    font-size: .83rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.lp-alert:empty { display: none; }

/* ── Footer ─────────────────────────────────────────────────── */
.lp-form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: .77rem;
    color: #94a3b8;
}

/* ── Responsive: stack on mobile ─────────────────────────────── */
@media (max-width: 768px) {
    .lp-page { grid-template-columns: 1fr; }
    .lp-hero  { display: none; }
    .lp-form-panel { padding: 2rem 1.25rem; }
}
