@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-red: #D80000; /* Mengambil aksen merah dari pinggiran logo Anda */
    --primary-hover: #B30000;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --border-color: #D1D5DB;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container Utama: Elegan dengan bayangan sangat halus */
.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1040px;
    height: 640px;
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* --- Area Kiri --- */
.auth-left {
    flex: 1.1;
    background-image: url('../img/all.jpg');
    background-size: cover;
    background-position: center 20%;
    position: relative;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Filter gelap natural agar terlihat eksklusif & menonjolkan logo */
.visual-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.6) 0%, rgba(17, 24, 39, 0.9) 100%);
    z-index: 1;
}

.brand-logo, .quote-box {
    position: relative;
    z-index: 2;
}

/* LOGO: Diperbesar agar jelas dan presisi */
.brand-logo img {
    width: 130px; /* Ukuran logo sekarang jauh lebih besar */
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

.quote-box h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.quote-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.quote-box strong {
    color: var(--white);
    font-weight: 600;
}

/* --- Area Kanan --- */
.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    background-color: var(--white);
}

.form-container {
    width: 100%;
    max-width: 360px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 40px 0;
}

/* --- Form Inputs (Ergonomis) --- */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input[type="text"],
.password-field input {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    outline: none;
}

.input-group input::placeholder {
    color: #9CA3AF;
}

/* Interaksi fokus yang lembut, menggunakan aksen warna merah/emas logo */
.input-group input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(216, 0, 0, 0.1);
}

/* --- Password Field Khusus --- */
.password-field {
    position: relative;
}

.btn-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-toggle-pass:hover {
    background-color: #F3F4F6;
}

/* --- Toggle Switch --- */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 32px;
}

.remember-row span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--primary-red);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* --- Tombol Submit --- */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(216, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(216, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(216, 0, 0, 0.2);
}

/* --- Pesan Error Validasi --- */
.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #FECACA;
}

.alert-error svg {
    flex-shrink: 0;
    color: #DC2626;
}
.alert-error {
    position: relative;
    overflow: hidden;
}

.alert-error::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    opacity: 0.4;
    animation: countdown 5s linear forwards;
}

@keyframes countdown {
    from { width: 100%; }
    to   { width: 0%; }
}