:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --bg: #f4f6fb;
    --card-bg: #ffffff;
    --text: #1a1d29;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --error-bg: #fee2e2;
    --error-text: #b91c1c;
    --success-bg: #dcfce7;
    --success-text: #15803d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 10px 30px rgba(20, 20, 43, 0.06);
}

.auth-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
    text-align: center;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.form-row { margin-bottom: 18px; }
.form-row.two-col { display: flex; gap: 12px; }
.form-row.two-col > div { flex: 1; }

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

input[type=text], input[type=email], input[type=password], input[type=tel] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}

input:focus {
    border-color: var(--brand);
}

.btn-primary {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-primary:hover { background: var(--brand-dark); }

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 22px;
}
.auth-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}
.alert-error { background: var(--error-bg); color: var(--error-text); }
.alert-success { background: var(--success-bg); color: var(--success-text); }

.field-error {
    color: var(--error-text);
    font-size: 12px;
    margin-top: 4px;
}

.pin-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 18px;
}

/* --- minimal dashboard placeholder styling (Stage 2 only) --- */
.dash-wrap { max-width: 720px; margin: 60px auto; padding: 0 24px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.wallet-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.wallet-card .code { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.wallet-card .amount { font-size: 22px; font-weight: 700; margin-top: 4px; }
.logout-link { font-size: 13px; color: var(--text-muted); text-decoration: none; }
