/* ===== login.css — self-contained styles for the login screen =====
   Same variable names/values as the site's global style.css, so the
   two stay visually identical. Declared again here so this page still
   renders correctly on its own even if style.css doesn't load. */

:root {
  --black: #0a0a0b;
  --black-2: #121210;
  --black-soft: #17150f;
  --gold: #d4af5a;
  --gold-soft: #e8c98a;
  --gold-dim: rgba(212, 175, 90, 0.18);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --muted-2: rgba(255, 255, 255, 0.42);
  --font-display: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
  --radius-s: 4px;
  --radius-m: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}
html {
  background: var(--black);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

.eyebrow-text {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.form-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* liquid-glass-gold button, copied from the site's global style.css */
.liquid-glass-gold {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  padding: 13px 30px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--gold);
  color: var(--black-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}
.liquid-glass-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.35) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
}

body.login-body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  background: var(--black);
  max-width: 100vw;
  overflow-x: hidden;
}

.login-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.login-back span {
  color: var(--gold);
}
.login-back i {
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---------- left: brand stage ---------- */
.login-stage {
  position: relative;
  flex: 1.05;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 50% 40%,
    var(--black-2) 0%,
    var(--black) 70%
  );
}
.login-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/sanju_hero.png") center / cover;
  opacity: 0.16;
  filter: saturate(0.8);
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 45%,
    black 0%,
    transparent 70%
  );
}

/* rotating gold ring + orbiting mark */
.emblem {
  position: relative;
  width: 210px;
  height: 210px;
  z-index: 2;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
}
.ring-turn {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 90, 0.35);
  animation: spin 26s linear infinite;
}
.ring-turn::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px 2px rgba(232, 201, 138, 0.7);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.emblem-core {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(212, 175, 90, 0.08);
}

/* ---------- salon emblem mark (scissors icon, gold glow) ---------- */
.salon-mark {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 90, 0.05);
  animation: markFloat 3.6s ease-in-out infinite;
}
@keyframes markFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.salon-mark i {
  position: relative;
  z-index: 2;
  font-size: 2.1rem;
  color: var(--gold-soft);
  transform: rotate(-45deg);
  text-shadow: 0 0 18px rgba(232, 201, 138, 0.45);
}
.salon-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  animation: markPulse 3.6s ease-in-out infinite;
}
@keyframes markPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.12);
    opacity: 0;
  }
}
.salon-mark::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: markShine 5s ease-in-out infinite;
}
@keyframes markShine {
  0%,
  20% {
    left: -60%;
  }
  60%,
  100% {
    left: 130%;
  }
}

/* drifting gold particles (elements injected by login.js) */
.sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.spark {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-soft);
  opacity: 0;
  animation: floatup linear infinite;
}
@keyframes floatup {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-90vh) translateX(var(--drift, 20px));
    opacity: 0;
  }
}

.stage-copy {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 84%;
  max-width: 380px;
  overflow-wrap: break-word;
  opacity: 0;
  animation: riseIn 0.9s ease 0.5s forwards;
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.stage-copy h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
}
.heading-line1 {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
}
.heading-line2 {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--gold);
}
.stage-copy p {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- right: form panel ---------- */
.login-panel {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 2vw 20px 20px;
  background: var(--black-2);
}
.login-card {
  width: 100%;
  max-width: min(380px, 92vw);
  max-height: 94vh;
  overflow: auto;
  background: var(--black-soft);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 26px 30px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.25s forwards;
}
.login-card .eyebrow-text {
  margin-bottom: 8px;
}
.login-card h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}
.login-card .sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.form-error {
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #e5484d;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  margin-bottom: 14px;
}

.form-success {
  background: rgba(90, 212, 130, 0.1);
  border: 1px solid rgba(90, 212, 130, 0.4);
  color: #5ad482;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  margin-bottom: 14px;
}

.password-input-wrap {
  position: relative;
}
.password-input-wrap input {
  padding-right: 42px;
}
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  display: flex;
  align-items: center;
}
.password-toggle-btn:hover {
  color: var(--gold);
}

.field {
  position: relative;
  margin-bottom: 13px;
}
.field label {
  display: block;
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-s);
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field .field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #e5484d;
}
.field.has-error input {
  border-color: #e5484d;
}
.field.has-error .field-error {
  display: block;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.row label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.row input[type="checkbox"] {
  accent-color: var(--gold);
}
.row a {
  color: var(--gold-soft);
  transition: color 0.25s ease;
}
.row a:hover {
  color: var(--gold);
}

.login-card .liquid-glass-gold {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  padding: 11px 30px;
  font-size: 0.75rem;
}
.login-card .liquid-glass-gold[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
}

.alt-row {
  display: flex;
  gap: 12px;
}
.alt-row button {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-s);
  border: 1px solid var(--gold-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.25s ease, transform 0.15s ease;
}
.alt-row button i {
  color: var(--gold);
}
.alt-row button:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.foot-line {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.foot-line a {
  color: var(--gold);
  font-weight: 500;
}

/* ---------- responsive: tablet & below (stack stage above form) ---------- */
@media (max-width: 1000px) {
  html,
  body.login-body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  body.login-body {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .login-back {
    top: 16px;
    left: 16px;
    font-size: 1rem;
  }
  .login-stage {
    width: 100%;
    height: auto;
    min-height: 46vh;
    flex: none;
    padding: 70px 20px 30px;
  }
  .emblem {
    width: 160px;
    height: 160px;
  }
  .salon-mark {
    width: 72px;
    height: 72px;
  }
  .salon-mark i {
    font-size: 1.7rem;
  }
  .stage-copy {
    position: static;
    transform: none;
    width: 100%;
    max-width: 320px;
    margin: 18px auto 0;
    animation: none;
    opacity: 1;
  }
  .heading-line2 {
    font-size: 1.9rem;
  }

  .login-panel {
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 28px 20px 40px;
  }
  .login-card {
    width: 100%;
    max-width: 420px;
    max-height: none;
    animation: none;
    opacity: 1;
  }
}

/* ---------- responsive: phones ---------- */
@media (max-width: 480px) {
  .login-stage {
    min-height: 38vh;
    padding: 56px 16px 24px;
  }
  .emblem {
    width: 130px;
    height: 130px;
  }
  .salon-mark {
    width: 60px;
    height: 60px;
  }
  .salon-mark i {
    font-size: 1.4rem;
  }
  .stage-copy p {
    font-size: 0.75rem;
  }
  .heading-line1 {
    font-size: 0.95rem;
  }
  .heading-line2 {
    font-size: 1.6rem;
  }

  .login-panel {
    padding: 20px 14px 32px;
  }
  .login-card {
    max-width: 100%;
    padding: 22px 18px;
    border-radius: 12px;
  }
  .login-card h2 {
    font-size: 1.3rem;
  }
  .row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .alt-row {
    flex-direction: column;
  }
}

/* ---------- responsive: very small phones ---------- */
@media (max-width: 360px) {
  .login-stage {
    min-height: 32vh;
    padding: 48px 12px 20px;
  }
  .emblem {
    width: 110px;
    height: 110px;
  }
  .heading-line2 {
    font-size: 1.4rem;
  }
  .login-card {
    padding: 18px 14px;
  }
  .field input {
    font-size: 0.8rem;
    padding: 9px 12px;
  }
}
