:root {
    /* --- Palette disamakan dengan style.css (Unified) --- */
    --primary: #5891c7;
    --primary-dark: #708fb6;
    --primary-light: #dce6f1;
    --primary-faint: #f4f8fb;

    --bg-body: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;

    --danger: #ef4444;
    --danger-bg: #fecaca;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px -5px rgba(88, 145, 199, 0.15);
    --shadow-focus: 0 0 0 4px rgba(88, 145, 199, 0.1);

    /* Alias supaya nama lama di markup (btn-teal, text-teal) tetap jalan */
    --primary-teal: var(--primary);
    --dark-teal: var(--primary-dark);
    --light-bg: var(--bg-body);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: radial-gradient(circle at top right, var(--primary-faint), transparent),
                radial-gradient(circle at bottom left, #f8fafc, transparent);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

/* Ambient glow blobs di belakang card */
.login-container::before,
.login-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.login-container::before {
    width: 220px;
    height: 220px;
    background: rgba(88, 145, 199, 0.25);
    top: -60px;
    left: -50px;
}

.login-container::after {
    width: 180px;
    height: 180px;
    background: rgba(112, 143, 182, 0.2);
    bottom: -40px;
    right: -40px;
}

.login-card {
    border: none;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

/* Corner accent, kesan "scanning frame" */
.login-card::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 18px;
    height: 18px;
    border-top: 2px solid rgba(255, 255, 255, 0.55);
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px 0 0 0;
    z-index: 2;
    pointer-events: none;
}

.card-header-teal {
    background:
        radial-gradient(circle at 88% -8%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 6% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 30%),
        radial-gradient(circle at 100% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 32%),
        radial-gradient(circle at 30% 95%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Bubble kecil tambahan, biar berlapis dan gak flat */
.card-header-teal::before {
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    top: 22px;
    left: 28px;
    pointer-events: none;
}

.card-header-teal::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: #fff;
    border-radius: 50% 50% 0 0;
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Status dot "online", pulsing — sentuhan khas NMS */
.brand-logo::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #34d399;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(52, 211, 153, 0.6);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.form-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
}

.input-group {
    background: var(--primary-faint);
    border-radius: var(--radius-md);
    padding: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
}

.input-group:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding-left: 15px;
}

.form-control {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-control:focus {
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
}

.btn-teal {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.9rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.btn-teal:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-teal:active {
    transform: translateY(0);
}

.alert-custom {
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid var(--danger-bg);
}

.text-teal {
    color: var(--primary) !important;
}