/* ============================================
   LOGIN PAGE - STYLE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #0a2b4e;
}

/* ============================================
   PARTICLES
   ============================================ */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   LEFT SIDE - BACKGROUND
   ============================================ */
.left-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2b4e 0%, #0c3b5e 100%);
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/background.png') no-repeat center center;
    background-size: cover;
    opacity: 0.40;
    z-index: 0;
}

.left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.left-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(249, 202, 36, 0.3));
}

.left-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.left-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.left-quote {
    font-size: 13px;
    font-style: italic;
    border-left: 3px solid #f9ca24;
    padding-left: 20px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RIGHT SIDE - FORM
   ============================================ */
.right-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-radius: 40px 0 0 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    background: #ecf4fa;
}

.right-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    width: 80px;
    height: 100%;
    background: #ecf4fa;
    border-radius: 50% 0 0 50%;
    z-index: 1;
}

.right-side::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: #ecf4fa;
    border-radius: 0 0 50% 50%;
    z-index: 0;
}

.form-container {
    max-width: 360px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0a2b4e;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 13px;
    color: #1a2634;
    font-weight: 500;
}

/* ============================================
   INPUT GROUP
   ============================================ */
.input-group-custom {
    position: relative;
    margin-bottom: 18px;
}

.input-group-custom i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a2b4e;
    font-size: 14px;
    z-index: 10;
}

.input-group-custom input,
.input-group-custom select {
    padding-left: 42px;
    padding-right: 42px;
    border-radius: 14px;
    border: 2px solid #cbd5e1;
    font-size: 13px;
    height: 46px;
    transition: all 0.3s;
    width: 100%;
    background: white;
    color: #1a2634;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Arrow dropdown custom */
.input-group-custom select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a2b4e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.input-group-custom input:hover,
.input-group-custom select:hover {
    border-color: #f9ca24;
    background: #fffef5;
}

.input-group-custom input:focus,
.input-group-custom select:focus {
    border-color: #f9ca24;
    box-shadow: 0 0 0 3px rgba(249, 202, 36, 0.2);
    outline: none;
    background: white;
}

.input-group-custom select option {
    padding: 10px;
    background: white;
    color: #1a2634;
}

/* ============================================
   PASSWORD GROUP - TOGGLE BUTTON
   ============================================ */
.password-group {
    position: relative;
}

.password-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0a2b4e;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-group .toggle-password:hover {
    background: rgba(249, 202, 36, 0.15);
    color: #f9ca24;
}

.password-group .toggle-password:active {
    transform: translateY(-50%) scale(0.90);
}

.password-group input {
    padding-right: 48px;
}

/* ============================================
   BUTTON LOGIN
   ============================================ */
.btn-login {
    background: linear-gradient(135deg, #1a2634 0%, #0d1a26 100%);
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 14px;
    transition: all 0.3s;
    color: white;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 202, 36, 0.35);
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    color: #0a2b4e;
}

/* ============================================
   REGISTER LINK
   ============================================ */
.register-link {
    text-align: center;
    font-size: 12px;
    color: #1a2634;
    font-weight: 500;
}

.register-link a {
    color: #f0932b;
    text-decoration: none;
    font-weight: 700;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ============================================
   TOMBOL KEMBALI KE INDEX
   ============================================ */
.back-home {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.3);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.btn-back-home:hover {
    color: #0a2b4e;
    background: rgba(10, 43, 78, 0.06);
    border-color: rgba(203, 213, 225, 0.3);
    transform: translateY(-1px);
}

.btn-back-home i {
    font-size: 18px;
    color: #f9ca24;
}

/* ============================================
   ALERT
   ============================================ */
.alert-custom {
    font-size: 11px;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-text {
    text-align: center;
    font-size: 9px;
    color: #1a2634;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #cbd5e1;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .left-side {
        flex: 0.6;
        padding: 30px;
    }

    .right-side {
        border-radius: 30px 30px 0 0;
        margin-top: -20px;
    }

    .right-side::before,
    .right-side::after {
        display: none;
    }

    #particles {
        width: 100%;
    }

    .left-logo {
        width: 65px;
        height: 65px;
    }

    .left-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .left-side {
        flex: 0.5;
        padding: 20px;
    }

    .left-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .left-title {
        font-size: 18px;
    }

    .left-subtitle {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .left-quote {
        font-size: 11px;
        padding-left: 15px;
        max-width: 200px;
    }

    .right-side {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 12px;
    }

    .input-group-custom input,
    .input-group-custom select {
        height: 42px;
        font-size: 12px;
        padding-left: 38px;
        padding-right: 38px;
        border-radius: 12px;
    }

    .input-group-custom i {
        font-size: 13px;
        left: 12px;
    }

    .password-group .toggle-password {
        font-size: 14px;
        right: 8px;
        width: 28px;
        height: 28px;
    }

    .btn-login {
        padding: 10px;
        font-size: 12px;
        border-radius: 12px;
    }

    .register-link {
        font-size: 11px;
    }

    .btn-back-home {
        font-size: 11px;
        padding: 6px 12px;
    }
    .btn-back-home i {
        font-size: 15px;
    }

    .footer-text {
        font-size: 8px;
    }
}