/* modern-login.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #3b82f6;
    --dark-blue: #1e3a8a;
    --bg-light: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: 600px;
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* --- SEBELAH KIRI (ILLUSTRATION) --- */
.illustration-side {
    flex: 1.2;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.illustration-side img {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 2;
}

/* --- SEBELAH KANAN (LOGIN FORM) --- */
.form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-container img {
    width: 60px;
}

.logo-container span {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
}

.welcome-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    text-transform: uppercase;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- ERROR MESSAGE --- */
.error-msg {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fee2e2;
}

/* --- INPUT GROUPS --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    /* 45px kiri untuk ikon, 45px kanan untuk ikon mata */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--white);
}

.toggle-password {
    position: absolute;
    right: 15px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

.toggle-password i {
    position: static !important;
    transform: none !important;
    font-size: 18px;
    color: inherit;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-muted);
}

.remember-me input {
    cursor: pointer;
}

/* --- BUTTON --- */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(29, 78, 216, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px 0;
    }

    .illustration-side {
        display: none;
    }

    .login-wrapper {
        max-width: 450px;
        height: auto;
    }
}