/* ============================================================
   auth.css — Login, Register pages
   ============================================================ */

.auth-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  padding: 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 40px;
  width: 100%;
  max-width: 460px;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card-header h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth-card-header p {
  font-size: 15px;
  color: var(--slate-light);
}

/* ── FORM ELEMENTS ── */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.label-hint {
  font-weight: 400;
  color: var(--slate-light);
  font-size: 12px;
}
.label-link {
  font-weight: 400;
  font-size: 13px;
  color: var(--slate-light);
  text-decoration: none;
}
.label-link:hover { color: var(--navy); text-decoration: underline; }

.form-group input,
.form-group select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
}
.form-group input::placeholder { color: var(--slate-light); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── ALERTS ── */
.alert {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.alert p { margin: 0; line-height: 1.5; }
.alert p + p { margin-top: 4px; }

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.alert-error a { color: #991B1B; font-weight: 600; }

.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

/* ── BOTTOM LINKS ── */
.auth-terms {
  font-size: 12px;
  color: var(--slate-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}
.auth-terms a { color: var(--slate); text-decoration: underline; }

.auth-switch {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--slate);
}
.auth-switch a { color: var(--navy); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.auth-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--slate-light);
}
.auth-footer a { color: var(--slate-light); text-decoration: none; }
.auth-footer a:hover { color: var(--navy); }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}
