@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0b1120; /* Warna biru super gelap khas Zenith */
    color: #e2e8f0;
    min-height: 100vh;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOP NAVBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo akan otomatis mengecil dan rapi di pojok kiri atas */
.brand-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.top-actions {
    display: flex;
    gap: 20px;
    color: #94a3b8;
}

.top-actions svg {
    cursor: pointer;
    transition: color 0.2s;
}

.top-actions svg:hover {
    color: #ffffff;
}

/* MAIN CONTENT */
.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background-color: #151b2e; /* Card background slightly lighter */
    border-radius: 8px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #1e293b;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-header .subtitle {
    font-size: 14px;
    color: #94a3b8;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 25px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.label-row label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 13px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #ffffff;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0b1120; /* Same as body bg */
    border: 1px solid #2d3748;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.input-wrapper .icon {
    padding: 0 15px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #475569;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #5b5fcf; /* Purple/Indigo button */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.btn-primary:hover {
    background-color: #4f46e5;
}

.card-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
}

.card-footer a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* ALERT */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* FOOTER */
.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    font-size: 12px;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #e2e8f0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .bottom-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .topbar {
        padding: 15px 20px;
    }
    .login-card {
        padding: 30px 20px;
    }
}
