/* ╔══════════════════════════════════════════════════════════════╗
   ║  HotelNet — Login Ultra Luxe — Gold Obsidian Edition        ║
   ║  FIXED: overflow, spacing, full visibility                   ║
   ╚══════════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Montserrat:wght@100;200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,600&display=swap');

:root {
  --gold:          #c9a84c;
  --gold-light:    #f0d878;
  --gold-bright:   #ffe066;
  --gold-dark:     #8a6820;
  --gold-pale:     rgba(201,168,76,0.10);
  --obsidian:      #050507;
  --obsidian-2:    #0a0a0e;
  --obsidian-3:    #111118;
  --obsidian-4:    #181820;
  --white:         #ffffff;
  --cream:         #f5f0e8;
  --silver:        #c8c8d8;
  --border:        rgba(201,168,76,0.18);
  --border-bright: rgba(201,168,76,0.55);
  --font-display:  'Cormorant Garamond', serif;
  --font-title:    'Playfair Display', serif;
  --font-body:     'Montserrat', sans-serif;
  --ease-luxury:   cubic-bezier(0.76, 0, 0.24, 1);
  --ease-elastic:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ══ FIX PRINCIPAL : overflow-y auto pour permettre le scroll ══ */
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--obsidian);
  color: var(--silver);
  overflow-x: hidden;   /* ✅ CORRIGÉ : était overflow:hidden */
  overflow-y: auto;     /* ✅ scroll vertical autorisé */
  min-height: 100dvh;
  cursor: none;
}

a { text-decoration: none; color: inherit; }

/* Film grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 99989;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
}

/* ══════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════ */
#cursor-canvas { position: fixed; inset: 0; z-index: 99997; pointer-events: none; display: block; }
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 100000;
  width: 10px; height: 10px;
  background: #ffe066; border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px 4px rgba(255,220,60,1), 0 0 24px 8px rgba(201,168,76,0.7);
  will-change: left, top;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99999;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,168,76,0.8); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, opacity .3s;
  will-change: left, top;
}
.cursor-scaled #cursor-ring { width: 60px; height: 60px; opacity: 0.35; }
.cursor-scaled #cursor-dot  { transform: translate(-50%,-50%) scale(0.4); }

/* ══════════════════════════════════════════
   ANIMATED BACKGROUND
══════════════════════════════════════════ */
.login-background {
  position: fixed; inset: 0; z-index: 0;
  background: var(--obsidian);
  overflow: hidden;
}
.login-background::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  animation: gridMove 25s linear infinite;
}
@keyframes gridMove { to { background-position: 90px 90px; } }

.bg-rays {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, rgba(201,168,76,0.06) 25deg, transparent 50deg,
    transparent 130deg, rgba(201,168,76,0.06) 155deg, transparent 180deg,
    transparent 250deg, rgba(201,168,76,0.04) 275deg, transparent 310deg, transparent 360deg
  );
  animation: rotateRays 38s linear infinite;
  pointer-events: none;
}
@keyframes rotateRays { to { transform: rotate(360deg); } }

.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.11) 0%, transparent 70%);
  top: -200px; right: -180px; filter: blur(80px);
  animation: orb1 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  bottom: -80px; left: -100px; filter: blur(70px);
  animation: orb2 20s ease-in-out infinite alternate;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,224,102,0.09) 0%, transparent 70%);
  top: 40%; left: 38%; filter: blur(50px);
  animation: orb3 12s ease-in-out infinite alternate;
}
@keyframes orb1 { to { transform: translate(-60px, 90px) scale(1.25); } }
@keyframes orb2 { to { transform: translate(40px, -70px) scale(1.15); } }
@keyframes orb3 { to { transform: translate(-25px, 50px) scale(0.75); } }

.hero-gold-left, .hero-gold-right {
  position: fixed; top: 0; bottom: 0; z-index: 2; width: 3px;
  background: linear-gradient(to bottom, transparent 5%, var(--gold) 50%, transparent 95%);
  pointer-events: none;
}
.hero-gold-left  { left: 0;  animation: sideGlow 3.5s ease infinite; }
.hero-gold-right { right: 0; animation: sideGlow 3.5s ease 1.75s infinite; }
@keyframes sideGlow {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 1; box-shadow: 0 0 20px rgba(201,168,76,0.6); }
}

.hero-scan-line {
  position: fixed; left: 0; right: 0; height: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(to right,
    transparent 0%, rgba(201,168,76,0.0) 10%,
    rgba(255,224,60,0.85) 50%,
    rgba(201,168,76,0.0) 90%, transparent 100%);
  animation: scanDown 9s ease-in-out infinite;
  box-shadow: 0 0 16px 3px rgba(255,220,60,0.45);
}
@keyframes scanDown {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hpar {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255,224,60,0.8);
  animation: floatPar var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes floatPar {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.hero-corner {
  position: fixed; z-index: 4; width: 55px; height: 55px; pointer-events: none;
}
.hero-corner::before, .hero-corner::after {
  content: ''; position: absolute; background: var(--gold);
}
.hero-corner::before { width: 100%; height: 2px; }
.hero-corner::after  { width: 2px; height: 100%; }
.hc-tl { top: 20px; left: 20px; animation: cornerGlow 3s ease infinite; }
.hc-tr { top: 20px; right: 20px; transform: scaleX(-1); animation: cornerGlow 3s ease 0.75s infinite; }
.hc-bl { bottom: 20px; left: 20px; transform: scaleY(-1); animation: cornerGlow 3s ease 1.5s infinite; }
.hc-br { bottom: 20px; right: 20px; transform: scale(-1,-1); animation: cornerGlow 3s ease 2.25s infinite; }
@keyframes cornerGlow {
  0%, 100% { opacity: 0.3; filter: drop-shadow(0 0 3px rgba(201,168,76,0.4)); }
  50%       { opacity: 1;   filter: drop-shadow(0 0 14px rgba(255,224,60,0.9)); }
}

.hero-ticker {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  height: 36px;
  background: rgba(201,168,76,0.07);
  border-top: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; overflow: hidden;
  pointer-events: none;
}
.hero-ticker-inner {
  display: flex; gap: 55px; align-items: center;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item {
  font-size: 0.57rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  display: flex; align-items: center; gap: 12px;
}
.ticker-item i { color: var(--gold); font-size: 0.5rem; }

/* ══════════════════════════════════════════
   MAIN LAYOUT — ✅ CORRIGÉ
══════════════════════════════════════════ */
.login-container {
  position: relative; z-index: 10;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* ✅ padding adaptatif : réduit automatiquement si peu d'espace */
  padding: clamp(16px, 4vh, 40px) 20px clamp(50px, 6vh, 70px);
  animation: containerReveal 1.2s var(--ease-luxury) both;
}
@keyframes containerReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════
   THE CARD — ✅ CORRIGÉ : espacements réduits
══════════════════════════════════════════ */
.login-card {
  background: linear-gradient(145deg, rgba(10,10,14,0.97) 0%, rgba(5,5,7,0.98) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border);
  max-width: 460px;
  width: 100%;
  /* ✅ padding réduit et adaptatif */
  padding: clamp(28px, 4vh, 44px) clamp(24px, 4vw, 44px) clamp(24px, 3vh, 38px);
  position: relative;
  overflow: hidden;
  animation: cardReveal 1.4s var(--ease-luxury) 0.3s both;
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(60px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-bright), var(--gold), transparent);
}
.login-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.07), transparent 60%);
  pointer-events: none;
}
.login-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 40px 120px rgba(0,0,0,0.9), 0 0 80px rgba(201,168,76,0.08), inset 0 0 60px rgba(201,168,76,0.03);
  transition: all 0.6s var(--ease-luxury);
}

.card-border-sweep {
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dark), transparent, transparent, var(--gold-dark), var(--gold));
  background-size: 400% 400%;
  opacity: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  z-index: -1;
  animation: borderSweep 6s ease infinite;
  pointer-events: none;
}
@keyframes borderSweep {
  0%, 100% { background-position: 0% 50%; opacity: 0.15; }
  50%       { background-position: 100% 50%; opacity: 0.35; }
}

/* ══════════════════════════════════════════
   LOGO SECTION — ✅ marges réduites
══════════════════════════════════════════ */
.logo-section {
  text-align: center;
  /* ✅ marge réduite */
  margin-bottom: clamp(20px, 3vh, 36px);
  animation: logoReveal 1s var(--ease-luxury) 0.7s both;
}
@keyframes logoReveal {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-image-wrap {
  position: relative;
  /* ✅ taille réduite */
  width: clamp(70px, 10vh, 90px);
  height: clamp(70px, 10vh, 90px);
  margin: 0 auto clamp(10px, 2vh, 16px);
  display: flex; align-items: center; justify-content: center;
}

.logo-ring, .logo-ring-2 { display: none; }

.logo-corner { position: absolute; width: 14px; height: 14px; }
.logo-corner::before, .logo-corner::after { content: ''; position: absolute; background: var(--gold); }
.logo-corner::before { width: 100%; height: 1.5px; }
.logo-corner::after  { width: 1.5px; height: 100%; }
.lc-tl { top: -4px; left: -4px; }
.lc-tr { top: -4px; right: -4px; transform: scaleX(-1); }
.lc-bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.lc-br { bottom: -4px; right: -4px; transform: scale(-1,-1); }

.logo-img-login {
  /* ✅ taille réduite */
  width: clamp(50px, 8vh, 64px);
  height: clamp(50px, 8vh, 64px);
  object-fit: contain;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.9)) drop-shadow(0 0 28px rgba(201,168,76,0.5));
  animation: logoPulse 3.5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(201,168,76,0.7)) drop-shadow(0 0 22px rgba(201,168,76,0.35)); }
  50%       { filter: drop-shadow(0 0 22px rgba(255,224,60,1)) drop-shadow(0 0 44px rgba(201,168,76,0.7)); }
}
.logo-img-login:hover {
  transform: scale(1.1) rotate(-3deg);
  transition: transform 0.4s var(--ease-elastic);
}

.brand-name {
  font-family: var(--font-display);
  /* ✅ taille adaptative */
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 4s linear infinite;
}
@keyframes textShine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(220,220,230,0.65);
  animation: taglineFade 1s var(--ease-luxury) 1.2s both;
}
@keyframes taglineFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.divider-ornament {
  display: flex; align-items: center; gap: 12px;
  /* ✅ marge réduite */
  margin: clamp(10px, 1.5vh, 16px) auto 0;
  justify-content: center;
}
.do-line { height: 1px; width: 45px; background: linear-gradient(to right, transparent, var(--gold)); }
.do-line.rev { background: linear-gradient(to left, transparent, var(--gold)); }
.do-dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(201,168,76,0.6); }

/* ══════════════════════════════════════════
   FORM — ✅ espacements réduits
══════════════════════════════════════════ */
.login-form {
  animation: formReveal 0.9s var(--ease-luxury) 0.9s both;
}
@keyframes formReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(220,220,230,0.70);
  text-align: center;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* ✅ marge réduite */
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

/* ══════════════════════════════════════════
   ALERTS
══════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid;
  animation: alertIn 0.5s var(--ease-elastic);
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.alert-danger  { background: rgba(180,40,60,0.1); border-color: rgba(220,60,80,0.35); color: #ff7b8a; }
.alert-success { background: rgba(40,160,80,0.1); border-color: rgba(60,190,100,0.35); color: #5de88a; }

/* ══════════════════════════════════════════
   FORM GROUPS — ✅ marges réduites
══════════════════════════════════════════ */
.form-group {
  /* ✅ marge réduite */
  margin-bottom: clamp(14px, 2.2vh, 22px);
  position: relative;
  animation: fieldReveal 0.7s var(--ease-luxury) both;
}
.form-group:nth-child(2) { animation-delay: 1.0s; }
.form-group:nth-child(3) { animation-delay: 1.1s; }
@keyframes fieldReveal {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}

.form-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.form-label i { font-size: 0.68rem; }

.form-control {
  width: 100%;
  /* ✅ padding vertical réduit */
  padding: clamp(11px, 1.6vh, 14px) 20px;
  background: rgba(17,17,24,0.95) !important;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.82) !important;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  outline: none;
  transition: all 0.45s var(--ease-luxury);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  -webkit-text-fill-color: rgba(255,255,255,0.82) !important;
}
.form-control::placeholder {
  color: rgba(152,152,168,0.35);
  -webkit-text-fill-color: rgba(152,152,168,0.35) !important;
  font-weight: 300;
}
.form-control:focus {
  background: rgba(24,24,32,0.98) !important;
  border-color: var(--gold);
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 8px 32px rgba(201,168,76,0.18), inset 0 0 20px rgba(201,168,76,0.04);
}
.form-control:focus + .field-line,
.form-control:focus ~ .field-line { transform: scaleX(1); }

/* Autofill fix */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(17,17,24,0.98) inset !important;
  box-shadow: 0 0 0 1000px rgba(17,17,24,0.98) inset !important;
  -webkit-text-fill-color: rgba(255,255,255,0.82) !important;
  background-color: rgba(17,17,24,0.98) !important;
  caret-color: var(--gold) !important;
  border-color: var(--border) !important;
  transition: background-color 99999s ease-in-out 0s;
}
.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(24,24,32,0.98) inset, 0 0 0 3px rgba(201,168,76,0.12), 0 8px 32px rgba(201,168,76,0.18) !important;
  border-color: var(--gold) !important;
}

.field-line {
  position: absolute; bottom: 0; left: 10px; right: 10px; height: 1px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-bright), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-luxury);
}

.password-input-wrapper { position: relative; }
.password-input-wrapper .form-control { padding-right: 52px; }

.password-toggle {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; padding: 4px;
  color: rgba(201,168,76,0.55);
  cursor: none;
  transition: color 0.3s;
  font-size: 0.82rem;
}
.password-toggle:hover { color: var(--gold-bright); }

/* ══════════════════════════════════════════
   FORM OPTIONS — ✅ marges réduites
══════════════════════════════════════════ */
.form-options {
  display: flex; justify-content: space-between; align-items: center;
  /* ✅ marges réduites */
  margin: clamp(12px, 1.8vh, 20px) 0 clamp(18px, 2.5vh, 26px);
  font-size: 0.72rem;
  animation: fieldReveal 0.7s var(--ease-luxury) 1.2s both;
}

.form-check { display: flex; align-items: center; gap: 10px; }

.form-check-input {
  width: 16px; height: 16px;
  background: rgba(17,17,24,0.9);
  border: 1px solid var(--border);
  appearance: none; -webkit-appearance: none;
  cursor: none;
  position: relative;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.form-check-input:checked {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
  animation: checkPop 0.4s var(--ease-elastic);
}
@keyframes checkPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.form-check-input:checked::after {
  content: '✓';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--obsidian); font-size: 10px; font-weight: 700;
}

.form-check-label {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(220,220,230,0.65);
  cursor: none;
  transition: color 0.3s;
}
.form-check-label:hover { color: rgba(255,255,255,0.6); }

.forgot-password {
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  position: relative;
  transition: color 0.3s;
}
.forgot-password::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: linear-gradient(to right, var(--gold), var(--gold-bright));
  transition: width 0.4s var(--ease-luxury);
}
.forgot-password:hover { color: var(--gold-bright); }
.forgot-password:hover::after { width: 100%; }

/* ══════════════════════════════════════════
   SUBMIT BUTTON
══════════════════════════════════════════ */
.btn-login {
  width: 100%;
  /* ✅ padding réduit */
  padding: clamp(13px, 2vh, 16px) 32px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  background-size: 200% 200%;
  border: none;
  color: var(--obsidian);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: none;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  transition: all 0.5s var(--ease-luxury);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: buttonReveal 0.8s var(--ease-luxury) 1.35s both, buttonShimmer 4s ease-in-out infinite;
}
@keyframes buttonReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes buttonShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.btn-login::before {
  content: '';
  position: absolute; top: 0; left: -120%; width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.65s var(--ease-luxury);
}
.btn-login:hover::before { left: 120%; }
.btn-login:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(201,168,76,0.55); }
.btn-login:active { transform: translateY(-1px); }
.btn-login i { font-size: 0.9rem; animation: arrowDrift 2.2s ease-in-out infinite; }
@keyframes arrowDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.btn-login:hover i { animation: none; transform: translateX(8px); transition: transform 0.4s; }

/* ══════════════════════════════════════════
   FOOTER — ✅ marges réduites
══════════════════════════════════════════ */
.login-footer {
  /* ✅ marges réduites */
  margin-top: clamp(16px, 2.5vh, 26px);
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 1px solid var(--border);
  text-align: center;
  animation: fieldReveal 0.7s var(--ease-luxury) 1.5s both;
}
.login-footer p {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(200,200,215,0.45);
}
.login-footer a { color: var(--gold); }

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-dark), var(--gold)); border-radius: 2px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .login-card { padding: 28px 20px 24px; }
  .brand-name { font-size: 1.7rem; }
  .form-options { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-corner { display: none; }
}

/* ══ Très petit écran ou grand zoom ══ */
@media (max-height: 680px) {
  .logo-image-wrap { width: 60px; height: 60px; margin-bottom: 8px; }
  .logo-img-login  { width: 44px; height: 44px; }
  .brand-name      { font-size: 1.5rem; letter-spacing: 0.3em; margin-bottom: 4px; }
  .brand-tagline   { font-size: 0.5rem; }
  .divider-ornament { margin-top: 8px; }
  .logo-section    { margin-bottom: 16px; }
  .form-title      { margin-bottom: 14px; font-size: 0.88rem; }
  .form-group      { margin-bottom: 12px; }
  .form-options    { margin: 10px 0 16px; }
}