:root {
    --primary-color: #6d5dfc;
    --bg-dark: #13131a;
    --card-bg: #1a1a24;
    --text-white: #ffffff;
    --text-grey: #a0a0ab;
    --input-bg: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Background default untuk mobile */
    background: linear-gradient(rgba(19, 19, 26, 0.85), rgba(19, 19, 26, 0.95)), 
                url('/assets/images/baground.webp') center/cover no-repeat fixed;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 950px;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    margin: 20px;
}

/* --- DESKTOP HERO --- */
.auth-hero {
    flex: 1.2;
    padding: 50px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('/assets/images/baground.webp') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-img { height: 50px; width: auto; }
.hero-text h2 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
.hero-text p { color: rgba(255,255,255,0.7); }
.link-secondary { color: white; text-decoration: none; font-size: 0.9rem; opacity: 0.8; transition: 0.3s; }
.link-secondary:hover { opacity: 1; }

/* --- FORM SECTION --- */
.auth-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-logo { display: none; text-align: center; margin-bottom: 20px; }
.mobile-logo img { height: 40px; }

.form-header { margin-bottom: 30px; }
.form-header h2 { font-size: 1.8rem; margin-bottom: 10px; }
.form-header p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.5; }

.input-group { margin-bottom: 20px; }
.input-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-control:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:disabled { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }

.form-footer { margin-top: 30px; text-align: center; }
.form-footer p { font-size: 0.9rem; color: var(--text-grey); margin-bottom: 15px; }
.form-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* Tombol khusus mobile */
.btn-outline-mobile {
    display: none;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Pesan Sukses */
.success-box {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}
.success-box i { font-size: 2.5rem; color: #2ed573; margin-bottom: 15px; display: block; }

.error-message { color: #ff4d4d; font-size: 0.8rem; margin-top: 5px; display: none; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 850px) {
    .auth-container {
        background-color: rgba(26, 26, 36, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .auth-hero { display: none; }
    
    .mobile-logo { display: block; }
    
    .auth-form-section { padding: 40px 25px; }

    .form-header { text-align: center; }

    .btn-outline-mobile { display: inline-block; }
}
