:root {
    /* --- Silver / Steel Palette --- */
    --primary: #8d99a6;
    --primary-dark: #5f6b77;
    --primary-light: #e6e9ed;
    --primary-faint: #f6f7f9;

    --bg-body: #f4f5f7;
    --text-main: #2b3440;
    --text-muted: #7a838e;

    --danger: #ef4444;
    --danger-bg: #fecaca;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 4px 6px -1px rgba(43, 52, 64, 0.06);
    --shadow-hover: 0 15px 30px -5px rgba(95, 107, 119, 0.22);
    --shadow-focus: 0 0 0 4px rgba(141, 153, 166, 0.18);

    /* 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-light), transparent),
                radial-gradient(circle at bottom left, #eceef1, transparent);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

/* Ambient glow — silver, lebih lembut */
.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(141, 153, 166, 0.30);
    top: -60px;
    left: -50px;
}

.login-container::after {
    width: 180px;
    height: 180px;
    background: rgba(95, 107, 119, 0.22);
    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.6);
    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.6);
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px 0 0 0;
    z-index: 2;
    pointer-events: none;
}

/* Header — gradasi metalik: terang → gelap → pantulan terang lagi */
.card-header-teal {
    background:
        radial-gradient(circle at 88% -8%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 6% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 30%),
        radial-gradient(circle at 100% 70%, rgba(255, 255, 255, 0.18) 0%, transparent 32%),
        linear-gradient(125deg,
            #c3ccd4 0%,
            #8d99a6 35%,
            #5f6b77 65%,
            #9aa5b1 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Bubble kecil — pantulan cahaya di permukaan metal */
.card-header-teal::before {
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    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.18);
    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.35);
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Status dot "online" — tetap hijau, semantik 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);
}

/* Tombol — steel dengan highlight tipis di atas (efek brushed metal) */
.btn-teal {
    background: linear-gradient(180deg, #9aa5b1 0%, var(--primary) 45%, var(--primary-dark) 100%);
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(43, 52, 64, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
                0 2px 4px rgba(95, 107, 119, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.btn-teal:hover {
    background: linear-gradient(180deg, #a8b2bd 0%, #79858f 45%, #4e5964 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
                var(--shadow-hover);
    color: white;
}

.btn-teal:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(43, 52, 64, 0.2);
}

.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-dark) !important;
}
