/* =========================================
   PENGATURAN DASAR & LAYOUT
   ========================================= */
:root {
    --bg-left: #f0f2f5;         /* Abu-abu terang untuk sisi kiri */
    --text-left: #1e293b;       /* Teks gelap untuk sisi kiri */
    --highlight-text: #2563eb;  /* Aksen biru untuk tulisan SIPDSOS */
    
    --bg-right-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); /* Biru untuk sisi kanan */
    --card-bg: #ffffff;         /* Latar putih untuk form login */
    
    --primary-color: #2563eb;   /* Warna utama tombol & input */
    --text-dark: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-left);
    overflow-x: hidden;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
}

/* =========================================
   SISI KIRI (ABU-ABU & ANIMASI TEKS)
   ========================================= */
.auth-left {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-left);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-left);
    text-align: center;
    position: relative;
}

.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.text-line {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-left);
}

/* Tulisan SIPDSOS dibuat biru agar menyatu dengan tema sisi kanan */
.highlight-text {
    font-size: 4rem;
    letter-spacing: 2px;
    color: var(--highlight-text);
    text-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.highlight-text:hover {
    text-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.02);
    cursor: default;
}

.company-name {
    font-size: 1.2rem;
    margin-top: 10px;
    letter-spacing: 1px;
    font-weight: 500;
    color: #475569; /* Abu-abu agak gelap */
}

/* =========================================
   ANIMASI LOGO (FLOATING)
   ========================================= */
.logo-container {
    margin-top: 40px;
}

.company-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: float 4s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    cursor: pointer;
}

/* =========================================
   SISI KANAN (BIRU & FORM LOGIN)
   ========================================= */
.auth-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: var(--bg-right-gradient); /* Background Sisi Kanan Biru */
}

/* KARTU FORM LOGIN (PUTIH) AGAR TIDAK TABRAKAN */
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Memberikan efek mengambang pada form */
}

.login-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 700;
}

/* Alert Error (Opsional jika ada) */
.alert-error {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #fca5a5;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.password-container {
    position: relative;
}

.password-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
}

.password-container i:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* =========================================
   TIMING DELAY & KEYFRAMES
   ========================================= */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.8s; }
.delay-4 { animation-delay: 1.1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-left {
        padding: 50px 20px;
    }
    .highlight-text {
        font-size: 3rem;
    }
    .login-card {
        padding: 30px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

/* =========================================
   ANIMASI KHUSUS TULISAN SIPDSOS
   ========================================= */

.animated-sipdsos {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 4px;
    position: relative;
    
    /* Membuat gradien warna pada teks */
    background: linear-gradient(
        to right, 
        #2563eb 20%, 
        #60a5fa 40%, 
        #ffffff 50%, 
        #60a5fa 60%, 
        #2563eb 80%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Menggabungkan animasi kilauan dan gerakan membal */
    animation: 
        shineText 4s linear infinite, 
        softBounce 3s ease-in-out infinite;
    
    transition: all 0.3s ease;
    cursor: default;
}

/* Efek saat kursor menyentuh tulisan */
.animated-sipdsos:hover {
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.5));
    transform: scale(1.05);
}

/* LOGIKA ANIMASI */

/* Efek kilauan cahaya yang berjalan (Shine) */
@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

/* Efek gerakan membal halus (serasi dengan logo) */
@keyframes softBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}