/* ═══════════════════════════════════════
   BE FAMOUS ITALIA — auth.css
   Stili condivisi dalle pagine di autenticazione:
   login.html, recovery-password.html.
   (in precedenza questo blocco era duplicato inline
   identico in ciascuna delle due pagine)
   Richiede style.css caricato prima di questo file.
   ═══════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT PANEL — decorative */
.login-left {
  position: relative;
  background: var(--black-soft);
  border-right: 1px solid rgba(189,164,117,.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  overflow: hidden;
}
.login-left-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 70%, rgba(189,164,117,.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 15%, rgba(189,164,117,.05) 0%, transparent 60%);
}
.login-left-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(189,164,117,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189,164,117,.055) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 90% 90% at 30% 70%, black 10%, transparent 100%);
}
.login-left-ghost {
  position: absolute;
  bottom: -6rem; left: -4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28rem;
  font-weight: 700;
  color: rgba(189,164,117,.04);
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}
.login-left-content {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.login-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
  text-decoration: none;
}
.login-brand span { color: var(--white); }

.login-tagline-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}
.login-tagline-small {
  font-size: .6rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.login-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
}
.login-tagline em { font-style: italic; color: var(--gold); }
.login-tagline-body {
  margin-top: 1.5rem;
  font-size: .82rem;
  line-height: 1.9;
  color: rgba(255,255,255,.45);
  max-width: 380px;
}

.login-left-footer {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.login-left-link {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .3s;
}
.login-left-link:hover { color: var(--gold); }

/* RIGHT PANEL — form */
.login-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  min-height: 100vh;
  position: relative;
}
.login-right-scroll {
  width: 100%;
  max-width: 420px;
}

/* NAV pill (top right only) */
.login-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(21,22,19,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(189,164,117,.1);
}

/* FORM CARD */
.login-card-label {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: block;
}
.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.login-title em { font-style: italic; color: var(--gold); }
.login-subtitle {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* FORM */
.login-form { display: flex; flex-direction: column; gap: 1.4rem; }

/* FORGOT + REMEMBER ROW */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -.4rem;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
}
.login-remember input { display: none; }
.login-remember-box {
  width: 16px; height: 16px;
  border: 1px solid rgba(189,164,117,.3);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  flex-shrink: 0;
}
.login-remember.checked .login-remember-box {
  background: var(--gold);
  border-color: var(--gold);
}
.login-remember-box svg {
  width: 10px; height: 10px;
  stroke: var(--black);
  opacity: 0;
  transition: opacity .2s;
}
.login-remember.checked .login-remember-box svg { opacity: 1; }
.login-remember-label {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}
.login-forgot {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color .3s;
}
.login-forgot:hover { color: var(--gold); }

/* SUBMIT */
.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 1.1rem 2rem;
  cursor: pointer;
  transition: background .3s, transform .2s;
  margin-top: .4rem;
}
.btn-login:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }
.btn-login svg { width: 16px; height: 16px; }

/* ERROR ALERT */
.login-alert {
  display: none;
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.3);
  padding: 1rem 1.2rem;
  font-size: .78rem;
  color: #e74c3c;
  line-height: 1.6;
  letter-spacing: .02em;
}
.login-alert.visible { display: block; animation: fadeUp .4s both; }

/* SUCCESS flash */
.login-success {
  display: none;
  background: rgba(39,174,96,.1);
  border: 1px solid rgba(39,174,96,.25);
  padding: 1rem 1.2rem;
  font-size: .78rem;
  color: #2ecc71;
  line-height: 1.6;
}
.login-success.visible { display: block; }

/* DIVIDER */
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0 1.6rem;
}
.login-divider-line { flex: 1; height: 1px; background: rgba(189,164,117,.12); }
.login-divider-text { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.25); }

/* REGISTER LINK */
.login-register {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.login-register a { color: var(--gold); text-decoration: none; transition: color .3s; }
.login-register a:hover { color: var(--gold-light); }

/* LOADING SPINNER */
.spinner {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(21,22,19,.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-login.loading .spinner { display: block; }
.btn-login.loading .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* SUCCESS STATE — hidden by default (usata in recovery-password.html) */
.success-state { display: none; }
.success-state.visible { display: block; }
.success-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(189,164,117,.1);
  border: 1px solid rgba(189,164,117,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.success-check svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.success-title em { font-style: italic; color: var(--gold); }
.success-body {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 6rem 2rem 3rem; min-height: auto; }
  .login-nav { padding: 1rem 1.5rem; }
}
@media (max-width: 480px) {
  .login-right { padding: 5rem 1.5rem 2rem; }
}
