:root {
    --primary-dark: #020617; 
    --accent-navy: #1e40af; /* Mengganti emerald */
    --accent-hover: #1e3a8a; /* Mengganti emerald hover */
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-800: #1e293b;
}

/* =======================
   BASE LAYOUT
======================= */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#password {
    padding-right: 46px;
}

/* =======================
   BRAND TITLE
======================= */
.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #2868a9;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 24px;
}

/* =======================
   CONTAINER
======================= */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

/* =======================
   BACK LINK
======================= */
.back-to-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-500);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-to-hub:hover {
    color: #ffffff;
}

/* =======================
   LOGIN CARD
======================= */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    align-items: center;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-navy); /* Warna diubah */
    align-items: center;
}

/* =======================
   BRAND HEADER
======================= */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    font-size: 2.5rem;
    color: var(--accent-navy); /* Warna diubah */
    margin-bottom: 12px;
}

.brand-header h2 {
    margin: 0;
    color: #2868a9;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-title .highlight {
    color: #dc2626;
    font-weight: 700;
}

.brand-header p {
    margin: 6px 0 0 0;
    color: var(--slate-500);
    font-size: 0.85rem;
}

/* =======================
   FORM
======================= */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .fa-user,
.input-wrapper .fa-lock {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 46px;
    box-sizing: border-box;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    background-color: #f8fafc;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-navy); /* Warna diubah */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1); /* Warna diubah */
}

/* =======================
   BUTTON
======================= */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #2868a9;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--accent-hover); /* Warna diubah */
}

/* =======================
   SWEETALERT CUSTOM
======================= */
.hospenta-clean-popup {
    border-radius: 12px !important;
    padding: 32px 24px !important;
    width: 440px !important;
}

.hospenta-popup-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.hospenta-popup-text {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

.hospenta-btn-err {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 32px !important;
    border-radius: 8px !important;
    background-color: #ef4444 !important;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    font-size: 1rem;
}

.password-wrapper {
    position: relative;
}

/* Icon eye kanan */
/* icon eye kanan */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--slate-500);
    font-size: 1rem;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--slate-800);
}