/* ============================================================
   LOGIN PAGE – Niaga Jaya Electronic
   Light theme, senada dengan dashboard
   public/assets/css/login.css
   ============================================================ */

/* ── RESET ── */
body.login-page {
    font-family: 'Figtree', sans-serif;
    background: #f5f6fa;
    color: #1a1a1a;
    min-height: 100vh;
    overflow: hidden;
}

/* sembunyikan elemen dark theme yang tidak dipakai */
.login-bg,
.login-blob,
.login-blob-1,
.login-blob-2,
.login-blob-3 {
    display: none;
}

/* ── LAYOUT ── */
.login-wrapper {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

/* ══════════════════════════════════════
   LEFT PANEL – oranye seperti dashboard
   ══════════════════════════════════════ */
.login-left {
    background: linear-gradient(145deg, #2148DD 0%, #4F7BFF 55%, #1535B8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

/* dekorasi lingkaran */
.login-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    bottom: -60px;
    left: -60px;
    pointer-events: none;
}

/* badge */
.login-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    padding: 6px 14px; border-radius: 40px; width: fit-content;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; margin-bottom: 40px;
    position: relative; z-index: 1;
}
.login-badge::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    animation: nj-pulse 2s ease-in-out infinite;
}
@keyframes nj-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

.login-left h1 {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 700; line-height: 1.15;
    color: #fff; margin-bottom: 16px;
    position: relative; z-index: 1;
}
.login-left h1 span { color: rgba(255,255,255,.85); }

.login-left p {
    font-size: 15px; color: rgba(255,255,255,.82);
    line-height: 1.7; max-width: 360px; margin-bottom: 48px;
    position: relative; z-index: 1;
}

/* stats */
.login-stats {
    display: flex;
    background: rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    position: relative; z-index: 1;
}
.login-stat {
    flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.login-divider-v {
    width: 1px; background: rgba(255,255,255,.25); margin: 0 4px;
}
.login-stat-num {
    font-size: 1.6rem; font-weight: 700; color: #fff;
}
.login-stat-label {
    font-size: 11px; color: rgba(255,255,255,.75);
    letter-spacing: .05em; text-transform: uppercase;
}

/* chips */
.login-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    position: relative; z-index: 1;
}
.login-chip {
    padding: 6px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 30px;
    font-size: 12px; color: #fff;
    display: flex; align-items: center; gap: 6px;
    transition: background .2s;
}
.login-chip:hover { background: rgba(255,255,255,.25); }

/* ══════════════════════════════════════
   RIGHT PANEL – form putih bersih
   ══════════════════════════════════════ */
.login-right {
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px;
    overflow-y: auto;
}

.login-card {
    width: 100%; max-width: 400px;
}

/* logo */
.login-logo-wrap {
    display: flex; align-items: center; gap: 10px; margin-bottom: 36px;
}
.login-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #2148DD, #98B5FF);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(232,78,27,.3);
    flex-shrink: 0;
}
.login-logo-icon img {
    width: 40px; height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.login-logo-text {
    font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.2;
}
.login-logo-text span {
    display: block; font-size: 11px; font-weight: 400; color: #9ca3af;
}

.login-title {
    font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 6px;
}
.login-sub {
    font-size: 13px; color: #9ca3af; margin-bottom: 32px;
}

/* fields */
.login-field { margin-bottom: 18px; }
.login-field > label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 7px;
}

.login-input-wrap { position: relative; }
.login-input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 15px; pointer-events: none; transition: color .2s;
}
.login-input-wrap:focus-within .login-input-icon { color: #2148DD; }

.login-input-wrap input {
    width: 100%;
    background: #f9fafb !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 11px 13px 11px 40px !important;
    font-family: 'Figtree', sans-serif;
    font-size: 14px; color: #111827 !important;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    box-shadow: none !important;
}
.login-input-wrap input::placeholder { color: #d1d5db; }
.login-input-wrap input:focus {
    border-color: #2148DD !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(232,78,27,.10) !important;
}
.login-input-wrap input.is-invalid {
    border-color: #2148DD !important;
    background: #fef2f2 !important;
}

.login-error {
    font-size: 12px; color: #ef4444; margin-top: 5px; display: block;
}

/* eye toggle */
.login-eye {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #9ca3af; cursor: pointer;
    font-size: 15px; transition: color .2s; line-height: 1; padding: 0;
}
.login-eye:hover { color: #2148DD; }

/* remember + forgot */
.login-options {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; margin-top: -4px;
}
.login-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-remember input[type=checkbox] { display: none; }
.login-cb {
    width: 17px; height: 17px;
    border: 1.5px solid #d1d5db; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; flex-shrink: 0; background: #fff;
}
.login-remember input:checked + .login-cb {
    background: #2148DD; border-color: #2148DD;
}
.login-cb::after { content: '✓'; font-size: 10px; color: #fff; display: none; }
.login-remember input:checked + .login-cb::after { display: block; }
.login-remember-label { font-size: 13px; color: #6b7280; user-select: none; }

.login-forgot {
    font-size: 13px; color: #2148DD; font-weight: 500;
    text-decoration: none; transition: opacity .2s;
}
.login-forgot:hover { opacity: .75; }

/* submit button */
.login-btn {
    width: 100%; padding: 13px;
    border: none !important; border-radius: 10px !important; cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, #2148DD 0%, #98B5FF 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(232,78,27,.35) !important;
    transition: transform .2s, box-shadow .2s !important;
    position: relative; overflow: hidden;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232,78,27,.45) !important;
}
.login-btn:active { transform: translateY(0); }

/* or divider */
.login-or {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: #d1d5db; font-size: 12px;
}
.login-or::before,
.login-or::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

/* register row */
.login-register { text-align: center; font-size: 13px; color: #6b7280; }
.login-register a {
    color: #2148DD; font-weight: 600;
    text-decoration: none; transition: opacity .2s;
}
.login-register a:hover { opacity: .75; }

/* alert error */
.login-alert {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
    font-size: 13px; color: #2148DD;
}

/* responsive */
@media (max-width: 860px) {
    body.login-page { overflow: auto; }
    .login-wrapper  { grid-template-columns: 1fr; }
    .login-left     { display: none; }
    .login-right    { padding: 32px 24px; min-height: 100vh; }
}