/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
    overflow-x: hidden;
    padding: 20px;
}

/* ==========================================================================
   MAIN CONTAINER (SPLIT SYSTEM)
   ========================================================================== */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px rgba(255, 255, 255, 0.07) solid;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* PANEL KIRI (BRANDING & LOGO) */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(6, 182, 212, 0.03) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px rgba(255, 255, 255, 0.05) solid;
}

.brand {
    max-width: 450px;
}

/* LOGO CUSTOM: ALI MUTAQIN (GURU TIK) */
.brand-logo-tik {
    position: relative;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
    border: 2px rgba(255, 255, 255, 0.2) solid;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo-tik:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.6);
}

.brand-logo-tik .initials {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-logo-tik .tech-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #090d16;
    border: 2px #06b6d4 solid;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    animation: pulseGlow 2s infinite ease-in-out;
}

.brand-logo-tik .tech-icon i {
    font-size: 12px;
    color: #22d3ee;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px rgba(6, 182, 212, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(6, 182, 212, 0.9); }
}

/* TEKS BRANDING */
.brand h1 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.brand p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.brand-feature {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand-feature div {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.brand-feature i {
    color: #06b6d4;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* PANEL KANAN (FORM) */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-card .subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 36px;
}

/* ==========================================================================
   COMPONENTS (FORM CONTROLS)
   ========================================================================== */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box i {
    position: absolute;
    left: 18px;
    color: #475569;
    font-size: 16px;
    transition: color 0.3s ease;
}

.input-box input {
    width: 100%;
    padding: 15px 16px 15px 52px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px rgba(255, 255, 255, 0.08) solid;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-box input::placeholder {
    color: #475569;
}

.input-box input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    background: rgba(15, 23, 42, 0.85);
}

.input-box input:focus + i {
    color: #06b6d4;
}

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(0);
}

/* MESSAGES */
.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px rgba(239, 68, 68, 0.2) solid;
    padding: 14px 18px;
    border-radius: 14px;
    color: #f87171;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

/* FOOTER */
.login-footer {
    margin-top: 48px;
    text-align: center;
    font-size: 11px;
    color: #475569;
    line-height: 1.8;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 968px) {
    .login-container {
        max-width: 600px;
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 45px 35px;
        border-right: none;
        border-bottom: 1px rgba(255, 255, 255, 0.05) solid;
    }

    .brand {
        max-width: 100%;
        text-align: center;
    }

    .brand-logo-tik {
        margin: 0 auto 24px auto;
    }

    .brand p {
        margin-bottom: 28px;
    }

    .brand-feature {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 340px;
        margin: 0 auto;
        text-align: left;
    }

    .login-right {
        padding: 45px 35px;
    }
}

@media (max-width: 480px) {
    body { padding: 12px; }
    .login-container { border-radius: 24px; }
    .login-left { padding: 35px 20px; }
    .brand h1 { font-size: 28px; }
    .brand-feature { max-width: 100%; }
    .login-right { padding: 35px 20px; }
    .login-card h2 { font-size: 24px; }
    .input-box input { padding: 14px 16px 14px 48px; }
    .input-box i { left: 16px; }
    .btn-login { padding: 14px; }
}