@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #f0f0f0;
}

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-image: linear-gradient(110deg, #e42424, #ff351e); /* Warna dasar kartu */
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Panel Kiri (Ilustrasi) */
.left-panel {
    width: 45%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #140000; /* Lebih gelap dari panel kanan */
    text-align: center;
}

.left-panel img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.left-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.left-panel p {
    color: #a0a1a5;
    margin-top: 0.5rem;
}

.right-panel {
    width: 55%;
    padding: 3rem;
    color: white;
    box-sizing: border-box;
}

.right-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 5rem;
    height: 4px;
    background-image: linear-gradient(90deg, #ffb9b9, #ffc7c7); /* Gradient underline */
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(74, 0, 0, 0.781); /* Transparan */
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 0 0 2px rgb(188, 18, 18);
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.error-message {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.remember-me {
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    height: 1rem;
    width: 1rem;
}

.checkbox-group label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Button Styles */
.login-button {
    width: 100%;
    background-image: linear-gradient(90deg, #ffd93f, #ff6200);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.269);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Links */
.links-container {
    text-align: center;
    margin-top: 1.5rem;
}

.links-container a {
    font-size: 0.9rem;
    color: #a0a1a5;
    text-decoration: none;
}

.links-container a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- ATURAN RESPONSIVE --- */
@media (max-width: 768px) {
    .login-screen {
        padding: 0;
        align-items: flex-start;
    }

    .login-container {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .left-panel {
        display: none; /* Sembunyikan panel ilustrasi di HP */
    }

    .right-panel {
        width: 100%;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}