/* 10pTickets — Shared Account Page Styles */
/* accounts/style.css */

:root {
  --navy: #0B1D34;
  --navy2: #0F2444;
  --navy3: #162E50;
  --gold: #D4AF37;
  --gold-light: #F2C44D;
  --gold-dim: rgba(212,175,55,0.15);
  --border: rgba(212,175,55,0.2);
  --border2: rgba(255,255,255,0.07);
  --text: #F0F0F0;
  --muted: #8A9BB0;
  --muted2: #506070;
  --green: #27AE60;
  --red: #E74C3C;
  --amber: #E67E22;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { height:100%; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Montserrat', 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.logo-link { text-decoration: none; display: flex; align-items: baseline; gap: 1px; }
.logo-10 { font-size: 28px; font-weight: 900; color: var(--gold); letter-spacing: -0.02em; }
.logo-p  { font-size: 20px; font-weight: 900; color: var(--gold-light); }
.logo-t  { font-size: 20px; font-weight: 700; color: #fff; margin-left: 1px; }

.header-nav { display: flex; gap: 12px; align-items: center; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }

/* ── MAIN ── */
.page-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ── CARD ── */
.auth-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}

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

.card-logo {
  text-align: center;
  margin-bottom: 8px;
}
.card-logo .logo-10 { font-size: 32px; }
.card-logo .logo-p  { font-size: 24px; }
.card-logo .logo-t  { font-size: 24px; }

.card-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.card-sub {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── FORM ── */
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.form-row input,
.form-row select {
  width: 100%;
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus { border-color: var(--gold); }
.form-row input::placeholder { color: var(--muted2); }
.form-row select option { background: var(--navy2); }

.form-row input.error { border-color: var(--red); }
.field-error { font-size: 11px; color: var(--red); margin-top: 4px; display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── PASSWORD STRENGTH ── */
.pw-strength {
  height: 4px;
  background: var(--navy3);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.pw-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
.pw-label { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ── CHECKBOX ── */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.check-row label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.check-row label a { color: var(--gold); text-decoration: none; }

/* ── BUTTON ── */
.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-bottom: 16px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  text-align: center;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted2);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border2);
}

/* ── MESSAGES ── */
.msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  line-height: 1.5;
}
.msg.error   { background: rgba(231,76,60,0.1);  border: 1px solid rgba(231,76,60,0.3);  color: #f08080; }
.msg.success { background: rgba(39,174,96,0.1);  border: 1px solid rgba(39,174,96,0.3);  color: #80d4a0; }
.msg.info    { background: rgba(212,175,55,0.08); border: 1px solid var(--border);        color: var(--gold); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border2);
  padding: 20px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--muted2);
  line-height: 1.8;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ── SPINNER ── */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ACCOUNT PAGE SPECIFIC ── */
.account-wrap {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px;
  width: 100%;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border2);
}

.account-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.wallet-badge {
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  text-align: center;
}
.wallet-bal {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.wallet-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.account-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 4px;
}
.acc-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  border: none;
  background: none;
  font-family: inherit;
}
.acc-tab.active { background: var(--gold); color: var(--navy); }
.acc-tab:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-card {
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
}
.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border2);
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .auth-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .account-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .account-tabs { flex-wrap: wrap; }
}
