/* Shared styles for register, login, and admin login pages */

.topbar {
  max-width: 760px; margin: 0 auto; padding: 18px 20px 22px;
}

.auth-center {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 20px 60px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, oklch(96% 0.04 25 / 0.35), transparent 55%);
  pointer-events: none;
}
.auth-card > * { position: relative; }

.auth-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, oklch(72% 0.17 25), oklch(55% 0.20 25));
  color: white; display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 8px 20px oklch(55% 0.20 25 / 0.25);
}
.auth-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.auth-sub { font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.6; }

.field-group { margin-bottom: 16px; }
.field-lbl {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; font-weight: 500; margin-bottom: 6px;
}
.req { color: var(--accent); }
.field-wrap { position: relative; }
.field-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); font-size: 15px; transition: all 150ms;
}
.field-input:focus {
  background: white; border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-input.pw { letter-spacing: 0.08em; padding-inline-start: 44px; }
.eye-btn {
  position: absolute; top: 50%; inset-inline-start: 10px;
  transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-faint);
}
.eye-btn:hover { color: var(--text); background: var(--surface); }

.field-help {
  font-size: 11.5px; color: var(--text-muted);
  margin-top: 5px; line-height: 1.5; min-height: 1em;
}
.field-help.error   { color: var(--accent); }
.field-help.success { color: var(--success); }

.auth-error {
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13px; color: var(--accent); margin-bottom: 14px;
}

.auth-btn {
  width: 100%; padding: 13px 16px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 150ms;
  background: linear-gradient(135deg, oklch(72% 0.17 25), oklch(55% 0.20 25));
  color: white;
  box-shadow: 0 6px 16px oklch(55% 0.20 25 / 0.22);
}
.auth-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px oklch(55% 0.20 25 / 0.3); }
.auth-btn:disabled {
  background: var(--border-strong); color: var(--text-faint);
  box-shadow: none; cursor: not-allowed;
}

.auth-foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--border);
  text-align: center; font-size: 13px; color: var(--text-muted);
}
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.admin-switcher, .user-switcher {
  text-align: center; margin-top: 16px;
  font-size: 12px; color: var(--text-faint);
}
.admin-switcher a, .user-switcher a { color: var(--text-muted); font-weight: 500; }
.admin-switcher a:hover, .user-switcher a:hover { color: var(--text); }

.auth-side-info {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px;
  background: oklch(97% 0.02 265 / 0.6);
  border: 1px solid oklch(88% 0.03 265);
  border-radius: var(--radius-sm);
  font-size: 12px; color: oklch(35% 0.04 265);
  line-height: 1.6; margin-bottom: 16px;
}
.auth-side-info .emo { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.field-lbl .lbl-main { flex: 1; }
.field-lbl .lbl-opt { color: var(--text-faint); font-size: 11.5px; font-weight: 400; flex-shrink: 0; }

@media (max-width: 500px) {
  .auth-card { padding: 28px 22px; border-radius: 16px; }
  .auth-title { font-size: 20px; }
  .auth-icon { width: 48px; height: 48px; border-radius: 14px; }
  .auth-btn { padding: 14px 16px; font-size: 15px; }
  .field-input { font-size: 15px; }
}
