/* ============================================================
   MR.DENIM – Ultra Premium Authentication
   Split-screen: editorial image left | form right
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page Wrapper ───────────────────────────────────────── */
.auth-page {
  display: flex;
  min-height: 100vh;
  background: #080808;
  font-family: 'Jost', sans-serif;
}

/* ── LEFT: Editorial Panel ──────────────────────────────── */
.auth-editorial {
  position: relative;
  flex: 0 0 52%;
  overflow: hidden;
}

.auth-editorial-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: authImgZoom 20s ease-in-out infinite alternate;
}

@keyframes authImgZoom {
  0%   { transform: scale(1.04) translateX(0);   }
  100% { transform: scale(1.08) translateX(-1%); }
}

/* dark vignette over image */
.auth-editorial::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 40%, #080808 100%),
    linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 100%);
}

/* Brand wordmark overlay */
.auth-editorial-brand {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 2;
}

.auth-editorial-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: authFadeUp 1s 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

.auth-editorial-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(10px);
  animation: authFadeUp 1s 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ── RIGHT: Form Panel ──────────────────────────────────── */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow */
.auth-form-panel::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.auth-form-panel::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,120,180,0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

/* ── Form Inner Wrapper ─────────────────────────────────── */
.auth-inner {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

/* ── Header ─────────────────────────────────────────────── */
.auth-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 1rem;
  opacity: 0;
  animation: authFadeUp 0.7s 0.1s cubic-bezier(0.16,1,0.3,1) forwards;
}

.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: authFadeUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: authFadeUp 0.7s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, #d4af37, rgba(212,175,55,0));
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: authFadeUp 0.7s 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ── Form Fields ─────────────────────────────────────────── */
.auth-field {
  position: relative;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: authFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

.auth-field:nth-child(1) { animation-delay: 0.4s; }
.auth-field:nth-child(2) { animation-delay: 0.5s; }
.auth-field:nth-child(3) { animation-delay: 0.6s; }
.auth-field:nth-child(4) { animation-delay: 0.65s; }
.auth-field:nth-child(5) { animation-delay: 0.7s; }

.auth-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.auth-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.65rem 0;
  outline: none;
  transition: border-color 0.35s ease;
  caret-color: #d4af37;
}

.auth-input::placeholder {
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}

/* animated gold underline on focus */
.auth-field-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, #d4af37, #e6c96e);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

.auth-input:focus ~ .auth-field-line { width: 100%; }

.auth-input:focus { border-bottom-color: transparent; }

.auth-field:focus-within .auth-label { color: #d4af37; }

/* Row layout for two inputs side by side */
.auth-field-row {
  display: flex;
  gap: 1.5rem;
}

.auth-field-row .auth-field { flex: 1; }

/* ── Primary Button ──────────────────────────────────────── */
.auth-submit {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #d4af37;
  color: #080808;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  opacity: 0;
  animation: authFadeUp 0.7s 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* shimmer sweep */
.auth-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
}

.auth-submit:hover { transform: translateY(-2px); background: #c9a22e; }
.auth-submit:hover::before { left: 160%; }
.auth-submit:active { transform: translateY(0); }

/* ── Ghost / Outline button (optional alternate) ─────────── */
.auth-submit-outline {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.5);
  color: #d4af37;
}
.auth-submit-outline:hover { background: rgba(212,175,55,0.06); color: #d4af37; }

/* ── Footer Links ────────────────────────────────────────── */
.auth-alt {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  opacity: 0;
  animation: authFadeUp 0.7s 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}

.auth-alt a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.3em;
  transition: opacity 0.25s;
}
.auth-alt a:hover { opacity: 0.7; }

/* ── Error Banner ────────────────────────────────────────── */
.auth-error {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(220,38,38,0.3);
  background: rgba(220,38,38,0.07);
  color: #f87171;
  font-size: 0.82rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  animation: authShake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes authShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0);  }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0);  }
}

/* ── Password toggle icon ─────────────────────────────────── */
.auth-field-icon {
  position: absolute;
  right: 0;
  bottom: 0.6rem;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.25s;
  user-select: none;
}

.auth-field-icon:hover { color: #d4af37; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-editorial { display: none; }
  .auth-form-panel { padding: 3rem 2rem; }
  .auth-mobile-logo { display: block !important; }
}

@media (max-width: 480px) {
  .auth-title { font-size: 2.2rem; }
  .auth-field-row { flex-direction: column; gap: 0; }
}
