/* ═══════════════════════════════════════════
   BiometrikHadir — Login Page
   Clean · Corporate · Emerald
   ═══════════════════════════════════════════ */

/* ── Layout ── */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left panel — brand */
.login-panel-left {
    background-color: #0f172a;
    background-image: linear-gradient(rgba(15,23,42,.72), rgba(15,23,42,.72)),
                      var(--bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric accents */
.login-panel-left::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(45,212,191,.08);
    top: -160px; right: -160px;
    pointer-events: none;
}
.login-panel-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(45,212,191,.06);
    bottom: -80px; left: -60px;
    pointer-events: none;
}

.left-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.left-brand .brand-mark {
    width: 36px; height: 36px;
    background: #0d9488;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
}
.left-brand .brand-logo {
    object-fit: contain;
    flex-shrink: 0;
}
.left-brand .brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}
.left-brand .brand-name span { color: #2dd4bf; }

.left-hero {
    position: relative;
    z-index: 1;
}
.left-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(13,148,136,.18);
    color: #2dd4bf;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 22px;
    border: 1px solid rgba(45,212,191,.15);
}
.left-hero-label i { font-size: .85rem; }
.left-hero h2 {
    font-size: 2rem;
    font-weight: 750;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -.03em;
    margin-bottom: 16px;
}
.left-hero h2 em {
    font-style: normal;
    color: #2dd4bf;
}
.left-hero p {
    font-size: .88rem;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
    max-width: 340px;
}

/* Stats row */
.left-stats {
    display: flex;
    gap: 28px;
    position: relative;
    z-index: 1;
}
.left-stat-item {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.left-stat-item .stat-num {
    font-size: 1.4rem;
    font-weight: 750;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
}
.left-stat-item .stat-num span { color: #2dd4bf; }
.left-stat-item .stat-desc {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    margin-top: 3px;
}

/* Right panel — form */
.login-panel-right {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

/* Header */
.login-box-header {
    margin-bottom: 32px;
}
.login-box-header h1 {
    font-size: 1.55rem;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -.03em;
    margin-bottom: 6px;
}
.login-box-header p {
    font-size: .85rem;
    color: #64748b;
}

/* Divider line */
.login-divider {
    height: 2px;
    width: 36px;
    background: #0d9488;
    border-radius: 2px;
    margin: 12px 0 0;
}

/* Error block */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 3px solid #dc2626;
    color: #991b1b;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: .83rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: errIn .3s ease;
}
@keyframes errIn {
    0%   { opacity: 0; transform: translateY(-4px); }
    40%  { transform: translateX(-4px); }
    70%  { transform: translateX(4px); }
    100% { opacity: 1; transform: translateX(0); }
}
.login-error i { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }

/* Flash alerts in login */
.login-box .alert {
    font-size: .83rem;
    padding: 10px 13px;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 0; }

.login-form .form-group { margin-bottom: 16px; }

.login-form label {
    display: block;
    font-size: .76rem;
    font-weight: 650;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.login-form .input-wrapper { position: relative; }

.login-form .input-wrapper .input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color .18s;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: .88rem;
    color: #0f172a;
    background: #fff;
    transition: all .18s cubic-bezier(.4,0,.2,1);
    outline: none;
    -webkit-appearance: none;
}
.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder { color: #cbd5e1; }

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.login-form .input-wrapper:focus-within .input-icon { color: #0d9488; }

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px;
    transition: color .18s;
    display: flex; align-items: center;
}
.toggle-password:hover { color: #0d9488; }

/* Form options row */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: .82rem;
    color: #475569;
    font-weight: 500;
    user-select: none;
}

/* Custom checkbox */
.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.remember-me input[type="checkbox"]::after {
    content: '';
    width: 4px;
    height: 7px;
    border: 1.5px solid transparent;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0) translateY(-1px);
    transform-origin: center;
    transition: transform .15s cubic-bezier(.4,0,.2,1), border-color .15s;
}
.remember-me input[type="checkbox"]:checked {
    background: #0d9488;
    border-color: #0d9488;
}
.remember-me input[type="checkbox"]:checked::after {
    border-color: #fff;
    transform: rotate(45deg) scale(1) translateY(-1px);
}
.remember-me input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(13,148,136,.15);
    outline: none;
}

.forgot-link {
    font-size: .82rem;
    font-weight: 600;
    color: #0d9488;
    transition: color .18s;
}
.forgot-link:hover { color: #0f766e; text-decoration: underline; }

/* Submit button */
.btn-login {
    width: 100%;
    padding: 11px 20px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 650;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: all .18s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(13,148,136,.35), 0 4px 12px rgba(13,148,136,.2);
}
.btn-login:hover {
    background: #0f766e;
    box-shadow: 0 2px 6px rgba(13,148,136,.45), 0 6px 20px rgba(13,148,136,.25);
    transform: translateY(-1px);
}
.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(13,148,136,.3);
}
.btn-login i { font-size: 1rem; }

/* Footer note */
.login-footer-note {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: .76rem;
    color: #94a3b8;
}
.login-footer-note a { color: #0d9488; font-weight: 600; }
.login-footer-note a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-panel-left {
        display: none;
    }
    .login-panel-right {
        background: #fff;
        padding: 32px 24px;
        min-height: 100vh;
    }
    .login-box {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .login-panel-right { padding: 24px 20px; }
    .login-box-header h1 { font-size: 1.35rem; }
}