:root {
    --primary: #002b5b;
    --secondary: #ff8c00;
    --secondary-hover: #e67e00;
    --accent: #00bfff;
    --bg-dark: #00122a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-light: #f8f9fa;
    --text-muted: #8892b0;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow: auto;
    line-height: 1.5;
}

.page-wrapper,
.container {
    height: 100vh;
    display: flex;
    width: 100%;
}

.login-left {
    width: 45%;
    background: url("backgroundapm.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.92), rgba(0, 18, 42, 0.88));
    z-index: 1;
}

.branding-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.logo-hero {
    width: 120px;
    margin-bottom: 20px; /* Kurangkan sedikit margin jika perlu */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* Kod baru untuk mengecilkan tulisan i-PISPA */
.logo-title {
    width: 280px;      /* Kecilkan saiz lebar di sini */
    height: auto;      /* Kekalkan ratio gambar */
    display: block;
    margin-bottom: 15px; 
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.login-left h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #8892b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    width: 60px;
    height: 5px;
    background: var(--secondary);
    margin-bottom: 35px;
    border-radius: 10px;
}

.subtitle {
    font-size: 1.25rem;
    color: #ccd6f6;
    max-width: 450px;
    font-weight: 300;
}

.footer-left {
    position: absolute;
    bottom: 40px;
    left: 80px;
    z-index: 2;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-right {
    width: 55%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ccd6f6;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 16px 18px 16px 52px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--secondary);
}

/* --- WARNA OPTION YANG JELAS --- */
.opt-pegawai {
    color: #ffa500 !important;
    background-color: #00122a;
}

.opt-pelajar {
    color: #00e5ff !important;
    background-color: #00122a;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--secondary);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
    }
}