/** @format */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    max-width: 100%;
    /* Overwrite bootstrap container */
    padding: 0;
}

/* Left Column - Form */
.left-column {
    height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff;
    transition: all 0.5s ease;
    overflow-y: auto;
}

/* Mode Register: Background jadi Biru, Teks jadi Putih */
.left-column.register-mode {
    background-color: #0056b3;
    color: white;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
}

/* Penyesuaian warna logo berdasarkan mode */
#loginForm .logo h1 {
    color: #0056b3;
}

#registerForm .logo h1 {
    color: #fff;
}

.logo img {
    width: auto;
    height: 100px;
    /* Disesuaikan agar tidak terlalu besar */
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Tombol Primary (Biru) */
.btn-primary {
    background-color: #0056b3;
    color: white;
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Tombol Register di Mode Biru */
.form-register .btn-primary {
    background-color: #ffffff;
    color: #0056b3;
    border: none;
}

.form-register .btn-primary:hover {
    background-color: #f8f9fa;
    color: #004494;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-footer a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.left-column.register-mode .form-footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* Right Column - Image & Toggle */
.right-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.right-column.login-mode {
    background-color: #f0f4f8;
    /* Biru sangat muda */
}

/* Container Toggle yang melayang */
.toggle-container {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    background-color: white;
    border-radius: 30px;
    padding: 0.3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.toggle-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border-radius: 30px;
    color: #666;
}

.toggle-btn.active {
    background-color: #0056b3;
    color: white;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    /* Sedikit gelap agar gambar laundry tidak terlalu menyilaukan */
}

.form-register {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .right-column {
        display: none;
    }

    .left-column {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .left-column {
        max-width: 40%;
    }
}

input[type="number"] {
    -moz-appearance: textfield;
}