:root {
    --border: #d1d5db;
    --text: #000;
    --muted: #6b7280;
}

/* Layout */
body {
    background: #ffffff;
    margin: 0;
    font-family: system-ui, sans-serif;
    color: var(--text);
}

/* Top Navigation */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .1em;
}

.nav a {
    margin-left: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

/* Center Form */
.auth-container {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #fff;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 22px rgba(0,0,0,0.07);
}

/* Title */
.auth-box h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Labels & Inputs */
label {
    display: block;
    margin: 12px 0 6px;
    font-size: .9rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    outline: none;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}

/* Submit Button */
.btn-primary {
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .85;
}

/* "Already registered?" */
.switch-link {
    text-align: center;
    margin-top: 14px;
    font-size: .9rem;
}

.switch-link a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

/* Error/Success alerts */
.auth-alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: .9rem;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.auth-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Register-only overrides (optional) */

.auth-card {
  max-width: 460px; /* Register minimal wider */
}

@media (max-width: 520px) {
  .auth-card {
    max-width: 100%;
  }
}
