/* assets/css/auth.css (Versi 2.0 - Modern & Responsif) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #4a69bd;
    --dark-color: #1a202c;
    --secondary-text: #5a677d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sisi Kiri (Branding) */
.auth-branding {
    flex-basis: 50%;
    background-image: linear-gradient(rgba(74, 105, 189, 0.8), rgba(74, 105, 189, 0.8)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}
.auth-branding h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}
.auth-branding p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 450px;
    opacity: 0.9;
}

/* Sisi Kanan (Form) */
.auth-form-container {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-white);
}
.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}
.auth-form-wrapper h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: center;
}
.auth-form-wrapper .subtitle {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Padding kiri untuk ikon */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.2);
}
.form-group .input-icon {
    position: absolute;
    left: 15px;
    top: 41px; /* Sesuaikan posisi vertikal ikon */
    color: var(--secondary-text);
}

.auth-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-button:hover { background-color: #3b5496; }

.auth-switch-link {
    text-align: center;
    margin-top: 25px;
    color: var(--secondary-text);
}
.auth-switch-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Aturan Responsif untuk Mobile */
@media (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-branding {
        flex-basis: auto;
        min-height: 250px;
        text-align: center;
    }
    .auth-form-container {
        flex-basis: auto;
    }
}

.back-to-home {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    transition: color 0.2s ease;
}
.back-to-home:hover {
    color: var(--primary-color);
}
.back-to-home i {
    margin-right: 8px;
}
/* Tambahkan di akhir file auth.css */
.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 13px;
}

@media (max-width: 992px) {
    .back-to-home {
        color: white; /* Ubah warna di mobile agar terlihat di atas gambar */
    }
}