/* ============================================================
   auth.css — Momentum Career Platform
   Styles specific to the auth (login / register) page.
   NOTE: auth.html does NOT load shared.css, so all variables,
   reset, animations, and utilities are defined here directly.
   ============================================================ */

/* ----------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------- */
:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --slate:      #1e3a5f;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #f8f4ed;
  --off-white:  #f0ece3;
  --text-dark:  #0d1b2e;
  --text-mid:   #4a5568;
  --text-light: #8899aa;
}

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

/* ----------------------------------------------------------
   Utility
   ---------------------------------------------------------- */
.hidden {
  display: none !important;
}

.gold-rule {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ----------------------------------------------------------
   Page layout — two-panel split
   ---------------------------------------------------------- */
body {
  background: var(--navy);
  display: flex;
  overflow: hidden;
}

/* ----------------------------------------------------------
   Left decorative panel
   ---------------------------------------------------------- */
.panel-left {
  flex: 1;
  background: linear-gradient(145deg, #0a1628 0%, #112240 50%, #1a3558 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow blobs */
.panel-left::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.panel-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Brand in left panel gets slightly larger icon */
.panel-left .brand-icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.panel-left .brand-name {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.panel-left .brand {
  animation: fadeUp 0.6s ease both;
}

/* Hero text block */
.hero-text {
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 360px;
  font-weight: 300;
}

/* Stats row at bottom of left panel */
.stat-row {
  display: flex;
  gap: 40px;
  animation: fadeUp 0.7s ease 0.2s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold);
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ----------------------------------------------------------
   Right form panel
   ---------------------------------------------------------- */
.panel-right {
  width: 480px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  position: relative;
  overflow-y: auto;
}

.form-wrapper {
  width: 100%;
  animation: slideIn 0.5s ease both;
}

.form-header {
  margin-bottom: 36px;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
}

/* ----------------------------------------------------------
   Auth tabs (Sign In / Register toggle)
   ---------------------------------------------------------- */
.tabs {
  display: flex;
  background: var(--off-white);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 32px;
}

.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.tab.active {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.2);
}

/* ----------------------------------------------------------
   Auth-specific form fields
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

input {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

input::placeholder {
  color: #b0bec5;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: var(--slate);
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.25);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Loading state */
.submit-btn.loading {
  color: transparent;
  pointer-events: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border: 2px solid rgba(248, 244, 237, 0.3);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Divider line */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(10, 22, 40, 0.1);
}

/* Inline form message (error / success) */
.message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  animation: fadeUp 0.3s ease;
}

.message.error {
  display: block;
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.message.success {
  display: block;
  background: rgba(26, 122, 74, 0.08);
  color: #1a7a4a;
  border: 1px solid rgba(26, 122, 74, 0.2);
}

/* ----------------------------------------------------------
   Responsive — hide left panel on small screens
   ---------------------------------------------------------- */
@media (max-width: 800px) {
  .panel-left  { display: none; }
  .panel-right { width: 100%; padding: 40px 28px; }
}

/* ----------------------------------------------------------
   Brand name colour (needs explicit colour since .brand-name
   colour is set in shared.css which auth.html doesn't load)
   ---------------------------------------------------------- */
.panel-left .brand-name {
  color: var(--cream);
}