@font-face {
    font-family: 'Poppins';
    src: url('_fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('_fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f3f4f6;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.login-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-height: 600px;
    display: flex;
    flex-direction: row;
}

/* Sisi Kiri: Gambar / Branding */
.login-banner {
    background: url('../../_images/bg-login-new.jpg') no-repeat center center;
    background-size: cover;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
}

.login-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
}

/* Sisi Kanan: Form */
.login-form-container {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-area {
    margin-bottom: 30px;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.app-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Styling Input */
.form-control {
    padding: 12px 15px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group-text {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #9ca3af;
}

.form-control-icon {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Fokus Effect */
.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-color);
    background-color: #fff;
}

/* Tombol */
.btn-modern {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .login-banner {
        display: none;
    }

    .login-card {
        min-height: auto;
        border-radius: 20px;
    }

    .login-form-container {
        padding: 30px;
    }
}