/* ============================================================
   📌 /resources/css/auth.css (GABUNGAN LENGKAP)
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f2f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
::selection { background: #b3d4fc; color: #1a1a2e; }

.wrap {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf0f5;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* ===== LEFT SIDE (DARK GRADIENT) ===== */
.kiri {
    width: 42%;
    background: linear-gradient(145deg, #0f172a, #1a2a4a);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}
.kiri h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #f0f0f0;
    margin-bottom: 8px;
    line-height: 1.2;
}
.kiri p {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1.6;
}

/* ===== RIGHT SIDE (WHITE) ===== */
.kanan {
    width: 58%;
    padding: 48px 40px;
    background: #ffffff;
    flex-shrink: 0;
}
.kanan .badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #dbeafe;
    color: #1d4ed8;
    margin-bottom: 8px;
}
.kanan .badge.admin {
    background: #fef3c7;
    color: #92400e;
}
.kanan h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.kanan .sub {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.pesan {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.grup {
    margin-bottom: 16px;
    position: relative;
}
.grup label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.grup input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.2s;
    background: #fafbfc;
}
.grup input:focus {
    border-color: #5b8def;
    box-shadow: 0 0 0 3px rgba(91,141,239,0.08);
}
.grup input::placeholder { color: #94a3b8; }

.baris {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.ingat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
}
.ingat input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5b8def;
    cursor: pointer;
}
.lupa {
    font-size: 14px;
    color: #5b8def;
    text-decoration: none;
    font-weight: 500;
}
.lupa:hover { text-decoration: underline; }
.footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
}
.footer a {
    color: #5b8def;
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

.btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #5b8def;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn:hover {
    background: #4a7be0;
    transform: translateY(-1px);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== OVERLAY BLUR ===== */
#processingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
    gap: 20px;
    animation: fadeInOverlay 0.3s ease;
}
#processingOverlay.show {
    display: flex;
}
@keyframes fadeInOverlay {
    from { opacity:0; }
    to { opacity:1; }
}
#processingOverlay .overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
#processingOverlay .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(91,141,239,0.15);
    border-top-color: #5b8def;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#processingOverlay p {
    color: #f0f0f0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: pulseText 1.5s ease-in-out infinite;
}
@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .wrap { flex-direction: column; border-radius: 16px; max-width: 100%; }
    .kiri { width: 100%; padding: 28px 20px; border-radius: 16px 16px 0 0; }
    .kiri h1 { font-size: 22px; }
    .kanan { width: 100%; padding: 28px 20px; border-radius: 0 0 16px 16px; }
    .kanan h2 { font-size: 20px; }
    .grup input { height: 42px; font-size: 13px; }
    .btn { height: 42px; font-size: 14px; }
    .baris { flex-direction: column; align-items: flex-start; gap: 6px; }
    .lupa { font-size: 13px; }
    #processingOverlay p { font-size: 14px; }
    #processingOverlay .spinner { width: 32px; height: 32px; }
}
@media (max-width: 400px) {
    body { padding: 8px; }
    .kiri { padding: 20px 16px; }
    .kiri h1 { font-size: 18px; }
    .kiri p { font-size: 10px; }
    .kanan { padding: 20px 16px; }
    .kanan h2 { font-size: 18px; }
    .grup input { height: 38px; font-size: 12px; padding: 0 12px; }
    .btn { height: 38px; font-size: 13px; }
    .pesan { font-size: 12px; padding: 8px 12px; }
    .ingat { font-size: 13px; }
    .lupa { font-size: 12px; }
}

/* ===== KHUSUS ADMIN ===== */
.kiri-admin {
    background: linear-gradient(145deg, #1a1a2e, #16213e) !important;
}
