/* Estilos das telas de autenticacao — reaproveita a paleta do app (style.css). */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a1628;
    --bg-secondary: #111d35;
    --bg-card: #162040;
    --border: #1e3055;
    --gold: #d4a843;
    --gold-light: #e8c96a;
    --text: #e0e6ed;
    --text-muted: #a9b7c6;
    --green: #2ecc71;
    --red: #e74c3c;
    --orange: #f39c12;
    --focus-ring: 2px solid var(--gold-light);
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(1200px 600px at 50% -10%, #12224a 0%, var(--bg-primary) 60%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-card.wide { max-width: 880px; }

.brand {
    text-align: center;
    margin-bottom: 24px;
}
.brand h1 {
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 800;
}
.brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

h2.auth-title {
    font-size: 18px;
    margin-bottom: 18px;
    font-weight: 700;
}

label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}
input:focus { outline: var(--focus-ring); border-color: var(--gold); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--gold); color: #1a1205; margin-top: 22px; }
.btn-google {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    margin-top: 14px;
}
.btn-secondary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.auth-foot a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.alert {
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 14px;
    display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(231, 76, 60, 0.15); border: 1px solid var(--red); color: #f5b7b1; }
.alert-success { background: rgba(46, 204, 113, 0.13); border: 1px solid var(--green); color: #abebc6; }
.alert-info { background: rgba(243, 156, 18, 0.12); border: 1px solid var(--orange); color: #f8d7a3; }

.muted { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* Admin */
table.users {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
}
table.users th, table.users td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
table.users th { color: var(--text-muted); font-weight: 600; }
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.badge.pending { background: rgba(243, 156, 18, 0.18); color: var(--orange); }
.badge.approved { background: rgba(46, 204, 113, 0.16); color: var(--green); }
.badge.rejected { background: rgba(231, 76, 60, 0.16); color: var(--red); }

.row-actions { display: flex; gap: 8px; }
.row-actions .btn { width: auto; padding: 7px 12px; font-size: 12px; margin: 0; }

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.admin-head .btn { width: auto; padding: 8px 14px; font-size: 13px; }

.spinner { text-align: center; color: var(--text-muted); padding: 24px; }
