:root {
    --clr-primary: #043873;
    --clr-accent: #F99D1C;
    --clr-accent-hover: #4f46e5;
    --clr-light: #fff;
    --clr-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #043873 0%, #1565c0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── NAVBAR ─── */
.navbar-custom {
    background: var(--clr-light);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    padding: .85rem 0;
}

.navbar-custom .navbar-brand {
    color: var(--clr-primary);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.5px;
    text-decoration: none;
}

.navbar-custom .nav-link {
    color: #043873;
    font-weight: 500;
    font-size: .92rem;
    padding: .5rem .85rem;
    border-radius: 6px;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #043873;
    background: rgba(255,255,255,.1);
}

/* ─── LOGIN SECTION ─── */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.login-container {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LEFT SIDE: Illustration */
.login-left {
    background-image: url('../assets/img/gedung-jti.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 600px;
}

.login-illustration {
    position: relative;
    width: 100%;
    text-align: center;
}

.login-illustration img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.overlay-text {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: #fff;
    padding: 0 2rem;
}

.overlay-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.overlay-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* RIGHT SIDE: Login Form */
.login-right {
    padding: 3rem;
    display: flex;
    align-items: center;
}

.login-form-wrapper {
    width: 100%;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
}

/* FORM STYLING */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--clr-primary);
}

.form-control {
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all .3s;
}

.form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(4, 56, 115, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input:checked {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.form-check-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 0.2rem rgba(4, 56, 115, 0.25);
}

.form-check-label {
    color: #495057;
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--clr-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color .3s;
}

.forgot-password:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* LOGIN BUTTON */
.btn-login {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--clr-primary) 0%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 56, 115, 0.3);
    background: linear-gradient(135deg, #1565c0 0%, var(--clr-primary) 100%);
}

.btn-login:active {
    transform: translateY(0);
}

/* LOGIN FOOTER */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #6c757d;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color .3s;
}

.login-footer a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ALERT STYLING */
.alert {
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

/* ─── FOOTER ─── */
.footer-custom {
    background: rgba(4, 56, 115, 0.9);
    color: rgba(255,255,255,.7);
    padding: 1.5rem 0;
    font-size: .85rem;
    margin-top: auto;
}

.footer-custom a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}

.footer-custom a:hover {
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .login-section {
        padding: 2rem 0;
    }
    
    .login-right {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .overlay-text h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
