/* Login page — modern split-screen */
.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--bg-body);
}
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

/* LEFT HERO */
.login-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 56px 64px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
}
.login-hero .hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 20% 0%, rgba(124,58,237,.55), transparent 60%),
        radial-gradient(800px 400px at 80% 100%, rgba(59,130,246,.55), transparent 60%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #1e1b4b 100%);
    z-index: 0;
}
.login-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .35;
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}
.login-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}
.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.3px;
    margin-bottom: 64px;
}
.hero-brand-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    font-size: 16px;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.05;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,.72);
    max-width: 460px;
    margin: 0 0 32px;
}
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.hero-features li {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; gap: 12px;
}
.hero-features i {
    color: #a7f3d0;
    font-size: 14px;
}
.hero-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

/* RIGHT PANEL */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    background: var(--bg-body);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: 0 30px 60px rgba(15,23,42,.08);
}
.login-card-head { margin-bottom: 24px; }
.login-card-head h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 4px;
    letter-spacing: -.4px;
}
.login-card-head p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.input-wrap { position: relative; }
.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 13px;
}
.input-with-icon {
    padding-left: 42px !important;
    padding-right: 42px !important;
    height: 44px;
}
.input-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.input-toggle:hover { background: var(--brand-soft); color: var(--brand); }

.form-row-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 20px;
    font-size: 13px;
}
.dp-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-body); font-size: 13px; cursor: pointer; }
.dp-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }

.login-btn {
    width: 100%;
    height: 48px;
    justify-content: center;
    font-size: 14px;
    letter-spacing: .2px;
    border-radius: 10px;
}

.login-divider {
    margin-top: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    position: relative;
}
.login-divider::before,
.login-divider::after {
    content: '';
    display: inline-block;
    width: 30%;
    height: 1px;
    background: var(--border-color);
    vertical-align: middle;
    margin: 0 10px;
}

@media (max-width: 991.98px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-hero { display: none; }
    .login-panel { padding: 32px 16px; background: linear-gradient(135deg, #eef2ff 0%, #f5f7fb 100%); min-height: 100vh; }
}
