/* Login page (used by: index.php) — Aradhya Jewellers: black & gold */

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

body.aj-login {
  --gold: #d4af37;
  --gold-2: #f1d78a;
  --gold-3: #b8892b;
  --ink: #0d0c0a;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #efe6d2;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.18) 0, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(184, 137, 43, 0.14) 0, transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 9px),
    var(--ink);
}

.aj-shell {
  position: relative;
  width: min(1040px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  background: #15120e;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 40px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 0 6px rgba(212, 175, 55, 0.04);
}

/* ---------- brand side ---------- */
.aj-brand {
  position: relative;
  background: #0f0d0a url("../../images/aj_brand.jpg") no-repeat center / cover;
}
.aj-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(90deg, transparent 70%, rgba(21, 18, 14, 0.9));
}
/* gold frame corners */
.aj-corner {
  position: absolute;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0 solid var(--gold);
  opacity: 0.75;
}
.aj-corner.tl { top: 18px; left: 18px; border-top-width: 1.5px; border-left-width: 1.5px; }
.aj-corner.tr { top: 18px; right: 18px; border-top-width: 1.5px; border-right-width: 1.5px; }
.aj-corner.bl { bottom: 18px; left: 18px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.aj-corner.br { bottom: 18px; right: 18px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- form side ---------- */
.aj-panel {
  display: grid;
  place-items: center;
  padding: 44px 40px;
  background:
    radial-gradient(circle at 100% 0, rgba(212, 175, 55, 0.08) 0, transparent 45%),
    #15120e;
}
.aj-form-wrap {
  width: min(360px, 100%);
}
.aj-head {
  text-align: center;
  margin-bottom: 26px;
}
.aj-mark {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
  color: var(--gold);
  font-size: 22px;
}
.aj-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.aj-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  color: #fbf3df;
}
.aj-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: #a79a80;
}
.aj-rule {
  position: relative;
  display: block;
  width: 140px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.aj-rule i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

#loginForm label {
  display: block;
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9b98f;
}
.aj-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.aj-field > i {
  position: absolute;
  left: 15px;
  font-size: 14px;
  color: var(--gold);
  pointer-events: none;
}
.aj-field input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 14.5px;
  color: #fbf3df;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.aj-field input::placeholder {
  color: #6f6552;
}
.aj-field input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}
.aj-eye {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a79a80;
  cursor: pointer;
}
.aj-eye:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.aj-btn {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1d78a 0%, #d4af37 45%, #b8892b 100%);
  color: #1a1408;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px rgba(212, 175, 55, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s, filter 0.15s;
}
.aj-btn i {
  transition: transform 0.15s;
}
.aj-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.aj-btn:hover i {
  transform: translateX(4px);
}
.aj-link {
  display: block;
  margin: 16px auto 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #c9b98f;
  cursor: pointer;
}
.aj-link:hover {
  color: var(--gold-2);
  text-decoration: underline;
}
.aj-foot {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #7d7262;
}
.aj-foot strong {
  color: var(--gold);
}

/* SweetAlert on this page */
.swal2-popup {
  font-family: "Manrope", system-ui, sans-serif !important;
  border-radius: 16px !important;
}

@media (max-width: 860px) {
  .aj-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .aj-brand {
    min-height: 280px;
    background-size: cover;
    background-position: center 38%;
  }
  .aj-brand::after {
    background: linear-gradient(180deg, transparent 60%, rgba(21, 18, 14, 0.95));
  }
  .aj-panel {
    padding: 30px 22px 34px;
  }
  .aj-head h1 {
    font-size: 34px;
  }
}
