/* ============================================
   TicketHub — Shared Auth Page Styles
   Used by: login, register, forgot_password, reset_password
   ============================================ */

:root {
  --bg:           #0d0d0d;
  --surface:      #151515;
  --surface-2:    #1c1c1c;
  --border:       #272727;
  --border-hover: #3d3d3d;
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --accent-glow:  rgba(245,158,11,0.12);
  --text-primary: #edebe6;
  --text-secondary: #888888;
  --text-muted:   #4a4a4a;
  --radius:       10px;
  --radius-lg:    16px;
  --success:      #10b981;
  --error:        #ef4444;
  --red:          #ef4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* -- Background glow -- */
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* -- Auth wrap -- */
.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.45s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Logo bar -- */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img { width: 24px; height: 24px; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

/* -- Card -- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.card-head-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-head-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-body { padding: 28px 32px 32px; }

/* -- Form -- */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-field {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 11px 42px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder { color: var(--text-muted); }

.input-field:focus {
  outline: none;
  border-color: var(--accent);
}

.input-field:focus ~ .input-icon { color: var(--accent); }

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 2;
}

.toggle-password:hover { color: var(--accent); }

/* -- Submit button -- */
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: #0d0d0d;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-submit:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #0d0d0d;
}

/* -- Message boxes -- */
.msg-box {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--success);
}

.msg-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--error);
}

/* -- Back link -- */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* -- Page footer -- */
.page-footer {
  margin-top: 28px;
  text-align: center;
}

.page-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
