body {
    font-family: 'Roboto', sans-serif;
    background-color: #1A202C; /* Dark background for the whole page, matching the image */
    color: #A0AEC0; /* Lighter gray text color for dark mode */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Hide scrollbars that might appear due to canvas */
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 70vh;
    max-height: 800px; /* Consistent max height */
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3), 0 10px 15px -5px rgba(0, 0, 0, 0.1); /* Enhanced shadow for dark bg */
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #2D3748; /* Fallback for left panel, or main container bg if needed */
}

.left-panel {
    flex-basis: 55%;
    background-color: #171923; /* Very dark background for the canvas area (Tailwind gray-900) */
    position: relative; /* Needed for absolute positioning of canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: white;
}

#hexagon-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind other content in left-panel */
}

.left-panel-content {
    position: relative; /* To ensure it's above the canvas */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Take full height of parent */
}

.left-panel .logo-area {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* bold */
}

.left-panel .footer-text {
    font-size: 0.875rem; /* text-sm */
}

.right-panel {
    flex-basis: 45%;
    background-color: #2D3748; /* Darker background for form panel (Tailwind gray-800) */
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel h2 {
    font-size: 1.75rem; /* text-2xl */
    font-weight: 700; /* bold */
    color: #E2E8F0; /* Light text (Tailwind slate-200) */
    margin-bottom: 0.5rem;
}
.right-panel .subtitle {
    font-size: 0.875rem; /* text-sm */
    color: #A0AEC0; /* Lighter gray (Tailwind gray-400) */
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    border: 1px solid #4A5568; /* Darker border (Tailwind gray-600) */
    border-radius: 0.375rem; /* rounded-md */
    background-color: #1A202C; /* Dark input bg (Tailwind gray-900) */
    color: #E2E8F0; /* Light input text */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-size: 0.875rem; /* text-sm */
}
.form-input::placeholder {
    color: #718096; /* Placeholder text color (Tailwind gray-500) */
}
.form-input:focus {
    border-color: #3182CE; /* focus:border-blue-500 */
    outline: 0;
    background-color: #2D3748; /* Slightly lighter on focus */
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25); /* focus:ring-blue-200 focus:ring-opacity-50 */
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    color: #CBD5E0; /* Light label text (Tailwind slate-300) */
}

.login-button {
    width: 100%;
    background-color: #3182CE; /* Blue button (Tailwind blue-600) */
    color: white;
    padding: 0.75rem; /* py-3 */
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 500; /* medium */
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
}
.login-button:hover {
    background-color: #2B6CB0; /* Darker blue on hover (Tailwind blue-700) */
}

.link-text { /* For "Daftar di sini" */
    color: #63B3ED; /* Lighter blue link (Tailwind blue-400) */
    font-weight: 500; /* medium */
}
.link-text:hover {
    color: #4299E1; /* (Tailwind blue-500) */
    text-decoration: underline;
}

.error-msg {
    background-color: #4A1D1D; /* Darker red background (custom) */
    color: #FEB2B2; /* Lighter red text (Tailwind red-300) */
    border: 1px solid #C53030; /* Red border (Tailwind red-600) */
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .left-panel { flex-basis: 45%; }
    .right-panel { flex-basis: 55%; padding: 2.5rem 3rem; }
}
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }
    .left-panel {
        flex-basis: auto;
        height: 200px; /* Reduced height for mobile */
        min-height: 180px;
        padding: 1.5rem;
    }
    .left-panel .logo-area { font-size: 1.5rem; }
    .left-panel .footer-text { display: none; }
    .right-panel {
        flex-basis: auto;
        padding: 2rem 1.5rem;
        width: 100%;
    }
    .right-panel h2 { font-size: 1.5rem; }
    .right-panel .subtitle { margin-bottom: 1.5rem; }
}
