/* auth.css — styling for login/register pages */

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

.auth-card {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.auth-logo {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #1a1a1a;
    margin-bottom: 20px;
}

h1 { font-size: 1.3rem; margin-top: 0; }

.form-row { margin-bottom: 14px; display: flex; flex-direction: column; }
.form-row label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-row input {
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-row-group { display: flex; gap: 12px; }
.form-row-group .form-row { flex: 1; }

.form-row-inline { margin-bottom: 16px; font-size: 0.85rem; }
.form-row-inline label { display: flex; align-items: center; gap: 6px; }

.field-error { color: #dc2626; font-size: 0.78rem; margin-top: 4px; }

.btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-full { width: 100%; }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-google { border-color: #d1d5db; }

.auth-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
    color: #9ca3af;
    font-size: 0.8rem;
}
.auth-divider span { background: #fff; padding: 0 10px; position: relative; z-index: 1; }
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e5e7eb;
}

.auth-footer { text-align: center; font-size: 0.85rem; margin-top: 18px; color: #6b7280; }
.auth-footer a { color: #2563eb; text-decoration: none; }

.auth-flashes { margin-bottom: 16px; }
.flash { padding: 10px 12px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 8px; }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-danger  { background: #fee2e2; color: #991b1b; }
.flash-info    { background: #dbeafe; color: #1e40af; }
