/* ============================================================
   Digoi – Login Page – Split Panel Design (B&W Premium)
   Left: Black branded panel  |  Right: White form panel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.login-body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    padding: 20px;
}

/* ── Outer Card ──────────────────────────────────────────── */
.login-card {
    display: flex;
    width: 960px;
    max-width: 100%;
    min-height: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── LEFT PANEL – Branded Black ─────────────────────────── */
.login-left {
    flex: 0 0 420px;
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 44px;
    overflow: hidden;
}

/* Decorative blobs (B&W version) */
.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -80px;
    left: -80px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: 60px;
    left: 120px;
}

.login-left .blob-top {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    top: -60px;
    right: -60px;
}

.login-left .blob-mid {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    top: 140px;
    right: 20px;
}

/* Content z-index above blobs */
.login-left-content {
    position: relative;
    z-index: 1;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.welcome-badge i {
    font-size: 0.6rem;
}

.login-left h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 6px;
}

.login-left h1 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.login-left .brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.login-left .brand-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 300px;
}

.login-left-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.login-left-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.login-left-feature .feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ── RIGHT PANEL – White Form ──────────────────────────── */
.login-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 48px;
    position: relative;
}

.login-right h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.login-right .subtitle {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 30px;
}

/* Form fields */
.lf-group {
    margin-bottom: 16px;
}

.lf-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.lf-input-wrap {
    position: relative;
}

.lf-input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 44px;
    background: #f5f5f5;
    border: 1.5px solid #ebebeb;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0a0a0a;
    outline: none;
    transition: all 0.2s;
}

.lf-input-wrap input:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.lf-input-wrap input::placeholder {
    color: #bbb;
}

.lf-input-wrap .lf-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: #aaa;
    pointer-events: none;
}

.lf-input-wrap .lf-show {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.lf-input-wrap .lf-show:hover {
    color: #000;
}

.lf-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.lf-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: #777;
    cursor: pointer;
    font-weight: 500;
}

.lf-options label input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: #000;
    cursor: pointer;
}

.lf-options a {
    font-size: 0.78rem;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.lf-options a:hover {
    color: #000;
}

/* Sign In button */
.btn-signin {
    width: 100%;
    height: 48px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn-signin:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-signin:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Divider */
.lf-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.lf-divider::before,
.lf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* Quick login roles */
.lf-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lf-role-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f8f8f8;
    border: 1.5px solid #eee;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.lf-role-btn:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.lf-role-btn:hover .lf-role-name {
    color: #fff;
}

.lf-role-btn:hover .lf-role-tag {
    color: rgba(255, 255, 255, 0.5);
}

.lf-role-btn:hover .lf-role-icon-wrap {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lf-role-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #555;
    flex-shrink: 0;
    transition: all 0.18s;
}

.lf-role-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #222;
    transition: color 0.18s;
    line-height: 1.2;
}

.lf-role-tag {
    font-size: 0.6rem;
    color: #aaa;
    transition: color 0.18s;
    line-height: 1.2;
}

/* ── Alert Messages ──────────────────────────────────────── */
.lf-error {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff1f1;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #dc2626;
    margin-bottom: 14px;
}

.lf-error.show {
    display: flex;
}

.lf-success {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #16a34a;
    margin-bottom: 14px;
}

.lf-success.show {
    display: flex;
}

/* ── OTP Section ─────────────────────────────────────────── */
.lf-section {
    display: none;
}

.lf-section.active {
    display: block;
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.otp-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0;
}

.otp-box {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Inter', monospace;
    background: #f5f5f5;
    border: 2px solid #eee;
    border-radius: 10px;
    color: #000;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.otp-box:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.otp-hint-text {
    text-align: center;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 6px;
}

.otp-hint-code {
    background: #f0f0f0;
    color: #000;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-family: monospace;
    font-size: 0.95rem;
    border: 1px solid #ddd;
}

.lf-back-link {
    text-align: center;
    margin-top: 14px;
}

.lf-back-link a {
    font-size: 0.78rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.lf-back-link a:hover {
    color: #000;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    body.login-body {
        padding: 12px;
        align-items: flex-start;
    }

    .login-card {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        flex: none;
        padding: 36px 28px;
        min-height: 220px;
    }

    .login-left h1 {
        font-size: 2.2rem;
    }

    .login-left-features {
        display: none;
    }

    .login-left::before,
    .login-left::after {
        display: none;
    }

    .login-right {
        padding: 32px 24px;
    }

    .lf-roles {
        grid-template-columns: 1fr;
    }
}