/* ============================================================
   Login page — Gold & Jewellery theme.
   Deep charcoal/black brand panel with warm gold accents, an
   elegant serif wordmark, and a jewellery-motif line illustration.
   Used only by resources/views/layouts/auth.php.
   ============================================================ */

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #fffaf0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Palette ---- */
:root {
  --gold: #c9a227;
  --gold-bright: #e9c85e;
  --gold-deep: #8a6c1f;
  --panel-black: #14100b;
  --panel-black-2: #221a10;
  --ivory: #fffaf0;
}

/* ---- Top bar ---- */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  background: var(--panel-black);
  border-bottom: 1px solid var(--gold-deep);
  position: relative;
  z-index: 20;
}

.auth-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ivory);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.auth-brand .brand-gem {
  color: var(--gold-bright);
}

.auth-brand .brand-accent {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-topbar .btn-support {
  background: transparent;
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  font-size: .85rem;
}

.auth-topbar .btn-support:hover {
  background: rgba(201, 162, 39, .12);
  color: var(--gold-bright);
}

/* ---- Main split ---- */
.auth-main {
  display: flex;
  flex: 1;
  min-height: 0;
}

.auth-panel-left {
  flex: 1 1 56%;
  position: relative;
  background:
    radial-gradient(circle at 75% 20%, rgba(233, 200, 94, .10) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(233, 200, 94, .07) 0%, transparent 50%),
    linear-gradient(160deg, var(--panel-black) 0%, var(--panel-black-2) 100%);
  color: #d8cdb4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.auth-panel-left::before,
.auth-panel-left::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 162, 39, .25);
  border-radius: 50%;
}

.auth-panel-left::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -140px;
}

.auth-panel-left::after {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -80px;
}

.auth-kicker {
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: .9rem;
  position: relative;
  z-index: 1;
}

.auth-panel-left h1 {
  font-family: "Playfair Display", Georgia, serif;
  color: #fff;
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 32rem;
  position: relative;
  z-index: 1;
}

.auth-panel-left h1 em {
  font-style: normal;
  color: var(--gold-bright);
}

.auth-panel-left p.lead-copy {
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #b9ad91;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.auth-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin: 0 0 2rem;
  position: relative;
  z-index: 1;
}

.auth-artwork {
  width: 100%;
  max-width: 280px;
  color: var(--gold-bright);
  opacity: .85;
  position: relative;
  z-index: 1;
}

/* ---- Right panel / form ---- */
.auth-panel-right {
  flex: 1 1 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--ivory);
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-form-wrap h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--panel-black);
  margin-bottom: .3rem;
}

.auth-form-wrap .subtitle {
  color: #8a7c5c;
  font-size: .92rem;
  margin-bottom: 1.75rem;
}

.auth-form-wrap .form-label {
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  color: #4a3f2a;
}

.auth-form-wrap .form-control {
  padding: .65rem .8rem;
  border: 1px solid #e3d9bd;
  background: #fffdf8;
}

.auth-form-wrap .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .18);
}

.btn-auth-login {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-bright) 80%, var(--gold));
  border: none;
  color: #241c0d;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .68rem;
  text-transform: uppercase;
  font-size: .88rem;
  transition: filter .15s ease, transform .15s ease;
}

.btn-auth-login:hover,
.btn-auth-login:focus {
  filter: brightness(1.06);
  color: #241c0d;
  transform: translateY(-1px);
}

/* ---- Support dropdown ---- */
.auth-support-panel {
  min-width: 270px;
  padding: .75rem 0;
  border: 1px solid #e3d9bd;
}

.auth-support-panel .support-header {
  font-family: "Playfair Display", Georgia, serif;
  padding: 0 1rem .5rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid #eee2c4;
  color: var(--panel-black);
}

.auth-support-panel .support-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  color: #4a3f2a;
  text-decoration: none;
  font-size: .92rem;
}

.auth-support-panel .support-row:hover {
  background: #fbf3dc;
  color: var(--gold-deep);
}

/* ---- Footer ---- */
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--panel-black);
  border-top: 1px solid var(--gold-deep);
  font-size: .8rem;
  color: #a99a72;
}

/* ---- Responsive: stack on small screens, hide the brand panel ---- */
@media (max-width: 991.98px) {
  .auth-main {
    flex-direction: column;
  }
  .auth-panel-left {
    display: none;
  }
  .auth-panel-right {
    flex: 1 1 auto;
  }
}
