/* ============================================================
   Phil-pips Auth Pages — Shared Styles
   ============================================================ */

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

:root {
  --bg:         #020b18;
  --bg-card:    #071525;
  --bg-input:   #0b1e31;
  --border:     #0e2d47;
  --gold:       #c9a227;
  --gold-light: #f0c84a;
  --gold-dim:   #7a5e0e;
  --blue:       #1e6abf;
  --blue-light: #3a90e8;
  --green:      #00e676;
  --red:        #ff1744;
  --text:       #d0e4f7;
  --text-dim:   #5a7a9a;
  --font-hud:   'Space Grotesk', sans-serif;
  --font-body:  'Poppins', sans-serif;
  --font-ui:    'Inter', sans-serif;
  --radius:     10px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(30,106,191,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,162,39,.06) 0%, transparent 50%);
}

/* ---- Brand header ---- */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-brand img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 24px rgba(201,162,39,.35);
}

.auth-brand-name {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
}

.auth-brand-name .blue { color: #3a90e8; text-shadow: 0 0 10px rgba(58,144,232,.5); }
.auth-brand-name .gold { color: var(--gold); text-shadow: 0 0 10px rgba(201,162,39,.5); }

.auth-brand-sub {
  font-family: var(--font-hud);
  font-size: .55rem;
  letter-spacing: 4px;
  color: var(--gold);
  opacity: .7;
}

/* ---- Card ---- */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #0b1e31 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.auth-card-wide {
  max-width: 520px;
}

.auth-title {
  font-family: var(--font-hud);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 24px;
}

/* ---- Form elements ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--font-hud);
  font-size: .58rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .9rem;
  padding: 11px 14px;
  border-radius: 7px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,106,191,.15);
}

select.form-input { cursor: pointer; }

/* ---- Buttons ---- */
.btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 7px;
  font-family: var(--font-hud);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,106,191,.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,106,191,.5); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 100%);
  color: #000;
  box-shadow: 0 4px 16px rgba(201,162,39,.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,162,39,.45); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ---- Alert ---- */
.alert {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: .8rem;
  margin-bottom: 18px;
  border: 1px solid;
}

.alert-error {
  background: rgba(255,23,68,.08);
  border-color: rgba(255,23,68,.4);
  color: #ff6b8a;
}

.alert-success {
  background: rgba(0,230,118,.08);
  border-color: rgba(0,230,118,.4);
  color: var(--green);
}

.alert-info {
  background: rgba(30,106,191,.08);
  border-color: rgba(30,106,191,.4);
  color: var(--blue-light);
}

/* ---- Links ---- */
.auth-link-row {
  text-align: center;
  margin-top: 18px;
  font-size: .8rem;
  color: var(--text-dim);
}

.auth-link-row a {
  color: var(--blue-light);
  text-decoration: none;
}
.auth-link-row a:hover { color: var(--gold); }

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: .7rem;
  text-align: center;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-family: var(--font-hud);
  font-size: .55rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Form row (two-column on desktop) ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row .form-group { margin-bottom: 16px; }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Required / Optional markers ---- */
.req {
  color: var(--red);
  margin-left: 2px;
  font-weight: 700;
}

.opt {
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: .68rem;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* ---- Textarea variant ---- */
.form-textarea {
  resize: vertical;
  min-height: 64px;
  font-family: var(--font-ui) !important;
  line-height: 1.5;
}

/* ---- Select dropdown styling ---- */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a7a9a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
select.form-input option {
  background: var(--bg-card);
  color: var(--text);
}

/* ---- Google Sign-In ---- */
.google-wrap {
  margin-bottom: 4px;
}

.google-btn-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-btn-host > div {
  width: 100% !important;
  max-width: 100% !important;
}

/* ---- Remember me ---- */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-dim);
  cursor: pointer;
  margin-bottom: 18px;
}
.checkbox-row input[type="checkbox"] { accent-color: var(--blue-light); width: 15px; height: 15px; }

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
