/* ==== STAR PRIME SERVICE — thème noir & or ==== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --black-deep: #060606;
  --black-panel: #101010;
  --black-panel-2: #161513;
  --gold: #d4af37;
  --gold-light: #f3dd8b;
  --gold-dark: #8a6d1f;
  --green: #1e9e57;
  --green-light: #27c46b;
  --text-main: #f2ede0;
  --text-dim: #a89f8c;
  --danger: #e0574a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--black-deep);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Fond texturé : halo doré + fine grille façon "marbre noir" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(212, 175, 55, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.08), transparent 40%),
    repeating-linear-gradient(135deg, rgba(212,175,55,0.02) 0px, rgba(212,175,55,0.02) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

/* ---- Emblème / logo ---- */
.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand .emblem {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
  animation: float 5s ease-in-out infinite;
}

.brand .emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand h1 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.brand .tagline {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Carte principale ---- */
.card {
  background: linear-gradient(180deg, var(--black-panel), var(--black-panel-2));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.05), transparent);
  transform: rotate(20deg);
  pointer-events: none;
}

.card h2 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin: 0 0 4px;
  text-align: center;
}

.card .sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 26px;
}

/* ---- Champs de formulaire ---- */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  background: #0c0b0a;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 9px;
  color: var(--text-main);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: #6b6455; }

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

/* ---- Boutons ---- */
.btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #05170d;
  box-shadow: 0 10px 24px rgba(30, 158, 87, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(30, 158, 87, 0.45);
}

.btn-google {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.btn-google:hover {
  background: rgba(212, 175, 55, 0.08);
}

.btn-google svg { width: 18px; height: 18px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
}

/* ---- Bas de carte ---- */
.switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
}

.switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.switch a:hover { text-decoration: underline; }

/* ---- Messages flash ---- */
.alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}

.alert-error {
  background: rgba(224, 87, 74, 0.08);
  border-color: rgba(224, 87, 74, 0.4);
  color: #f3a79e;
}

.alert-success {
  background: rgba(39, 196, 107, 0.08);
  border-color: rgba(39, 196, 107, 0.4);
  color: #8be6ac;
}

/* ---- Dashboard ---- */
.dash-card {
  max-width: 480px;
}

.account-id {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-size: 18px;
  background: #0c0b0a;
  border: 1px dashed rgba(212,175,55,0.4);
  border-radius: 9px;
  padding: 12px;
  text-align: center;
  margin: 18px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,175,55,0.12);
  font-size: 13px;
}

.info-row span:first-child { color: var(--text-dim); }
.info-row span:last-child { color: var(--text-main); font-weight: 500; }

.btn-logout {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(224, 87, 74, 0.4);
  color: #f3a79e;
}

.btn-logout:hover { background: rgba(224, 87, 74, 0.08); }

@media (max-width: 480px) {
  .row-2 { grid-template-columns: 1fr; }
  .card { padding: 26px 20px; }
}
