/* assets/css/auth.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.auth-container {
    background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex; width: 100%; max-width: 900px; min-height: 500px; overflow: hidden;
}

.auth-image {
    flex: 1; background-color: #f3f4f6; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.auth-image img { max-width: 100%; }

.auth-form-wrap {
    flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center;
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.brand img { height: 24px; }
.brand h2 { font-weight: 700; font-size: 1.2rem; color: #dc2626; } /* SonicPesa Red */

.auth-form-wrap h1 { font-size: 1.8rem; font-weight: 700; color: #111827; margin-bottom: 10px; }
.auth-form-wrap p.subtitle { color: #6b7280; font-size: 0.9rem; margin-bottom: 30px; }

.input-group { margin-bottom: 20px; position: relative; }
.input-group i { position: absolute; left: 15px; top: 15px; color: #9ca3af; }
.input-group input { 
    width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #e5e7eb; border-radius: 8px; 
    background-color: #f9fafb; outline: none; transition: border-color 0.2s; 
}
.input-group input:focus { border-color: #2563eb; background-color: #fff; }

.options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.9rem; }
.options label { display: flex; align-items: center; gap: 8px; color: #4b5563; cursor: pointer; }
.options a { color: #2563eb; text-decoration: none; }

.btn { 
    width: 100%; padding: 12px; background-color: #2563eb; color: #fff; border: none; 
    border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; 
}
.btn:hover { background-color: #1d4ed8; }

.switch-auth { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #4b5563; }
.switch-auth a { color: #2563eb; font-weight: 600; text-decoration: none; }

.error-msg { background: #fee2e2; color: #dc2626; padding: 10px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; }
.success-msg { background: #dcfce3; color: #166534; padding: 10px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; }

@media (max-width: 768px) {
    .auth-image { display: none; }
    .auth-container { max-width: 450px; margin: 20px; }
}
