:root {
    --color-primary: #0077B6;
    --color-accent: #48B570;
    --color-background: #F7F9FC;
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --shadow-subtle: 0 4px 10px rgba(0, 0, 0, 0.05);
    --color-overlay-dark: rgba(0, 0, 0, 0.5); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: none;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--color-text-light);
}

.container.active {
    display: flex;
}

.visual-panel {
    flex: 1.5; 
    background-image: url('../Img/Login Bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    overflow: hidden; 
}

.visual-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-overlay-dark);
    z-index: 1;
}

.visual-panel .content-area {
    position: relative;
    z-index: 2; 
    padding: 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start; 
    text-align: left; 
    height: 100%; 
    max-width: 85%; 
}

.tagline {
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); 
}

.description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.illustration-note {
    font-size: 0.9rem;
    opacity: 0.7; 
    margin-top: 10px;
}

.form-panel {
    flex: 1; 
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-text-dark);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.name-group {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.name-group .input-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #005f93;
}

.forgot-password,
.switch-link a {
    font-weight: 500;
    font-size: 0.9rem;
}

.main-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: var(--shadow-subtle);
}

.main-button:hover {
    background-color: #3b975a;
}

.main-button:active {
    transform: translateY(1px);
}

.switch-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none; 
    }
    .visual-panel {
        display: none;
    }
    
    .form-panel {
        padding: 40px 20px;
    }

    .form-wrapper {
        max-width: 100%; 
    }
}

/* Memaksa input mengikuti behavior text-capitalize dari Bootstrap */
input.text-capitalize,
.form-control.text-capitalize {
    text-transform: capitalize !important;
}

/* Jika ingin placeholder juga kapital */
input.text-capitalize::placeholder,
.form-control.text-capitalize::placeholder {
    text-transform: capitalize;
}