/* ============================================================
   LUXDRIVE — login.css
   Standalone styles for the login page only.
   Depends on: Google Fonts (Playfair Display, Barlow, Barlow Condensed)
               Font Awesome 6
   ============================================================ */

/* ── RESET (login page only) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  background: #080808;
  color: #F0EDE8;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }

/* ── CSS VARIABLES ── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E4C76B;
  --gold-dim:    rgba(201,168,76,0.15);
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(201,168,76,0.28);
  --text:        #F0EDE8;
  --text-muted:  #888880;
  --text-dim:    #555550;
  --radius:      4px;
  --ease:        cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ============================================================
   PAGE LAYOUT — split screen
   ============================================================ */
.ld-login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ============================================================
   VISUAL SIDE (left)
   ============================================================ */
.ld-login-visual {
  position: relative;
  overflow: hidden;
}

.ld-login-visual__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.ld-login-visual__slide.is-active { opacity: 1; }
.ld-login-visual__slide--1 {
  background-image: url('../images/firstslide.jpg');
}
.ld-login-visual__slide--2 {
  background-image: url('../images/secondslide.jpg');
}

.ld-login-visual__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(4,4,4,0.55) 0%,
    rgba(4,4,4,0.2)  50%,
    rgba(4,4,4,0.7)  100%
  );
}

.ld-login-visual__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

/* Logo (top-left) */
.ld-login-visual__logo {
  position: absolute; top: 2.5rem; left: 3rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; gap: .6rem;
  letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ld-login-visual__logo-icon { color: var(--gold); }

/* Quote (bottom) */
.ld-login-visual__quote { margin-bottom: 1.5rem; }
.ld-login-visual__quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}

/* Slide dots */
.ld-login-visual__dots { display: flex; gap: .5rem; }
.ld-login-visual__dots span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  transition: background .4s, width .4s;
}
.ld-login-visual__dots span.is-active { background: var(--gold); width: 40px; }

/* ============================================================
   FORM SIDE (right)
   ============================================================ */
.ld-login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   rgba(201,168,76,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(201,168,76,.05) 0%, transparent 55%),
    #0d0d0d;
}

.ld-login-form-wrap { width: 100%; max-width: 420px; }

/* Back link */
.ld-login-back {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  transition: color .2s;
}
.ld-login-back:hover { color: var(--gold); }

/* Headings */
.ld-login-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.ld-login-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: .75rem;
  color: var(--text);
}
.ld-login-title em { font-style: italic; color: var(--gold); }
.ld-login-subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── Form layout ── */
.ld-login-form { display: flex; flex-direction: column; gap: .2rem; }

.ld-form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; }
.ld-form-group label {
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .05em;
}

/* Input base */
.ld-input {
  display: block; width: 100%;
  padding: .78rem 1rem;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: .92rem;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.ld-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.ld-input::placeholder { color: var(--text-dim); }
.ld-input.is-error { border-color: #e85555; }

/* Input with icon */
.ld-input-icon-wrap { position: relative; }
.ld-input-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: .8rem;
  pointer-events: none; z-index: 1;
}
.ld-input--icon { padding-left: 2.75rem !important; }
.ld-password-wrap .ld-input--icon { padding-right: 6rem !important; }

/* Password toggle */
.ld-password-toggle {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  padding: .2rem .4rem;
  transition: opacity .2s;
}
.ld-password-toggle:hover { opacity: .7; }

/* Remember me */
.ld-login-options {
  display: flex; align-items: center;
  margin: .75rem 0 1.5rem;
}
.ld-check-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-muted);
  cursor: pointer;
}
.ld-check-label input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; }

/* Submit button */
.ld-btn-submit {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%;
  padding: 1.05rem 2rem;
  background: var(--gold);
  color: #080808;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s, box-shadow .3s;
}
.ld-btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,.35);
}
.ld-btn-submit:disabled { opacity: .65; cursor: not-allowed; pointer-events: none; }

/* Alerts */
.ld-alert {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 1.25rem;
}
.ld-alert--success { background: rgba(76,175,80,.1);  border: 1px solid rgba(76,175,80,.3);  color: #81c784; }
.ld-alert--error   { background: rgba(232,85,85,.1);  border: 1px solid rgba(232,85,85,.3);  color: #ef9a9a; }

/* Security note */
.ld-login-secure {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .78rem;
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.ld-login-secure i { color: var(--gold); font-size: .72rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body { overflow: auto; }
  .ld-login-page { grid-template-columns: 1fr; }
  .ld-login-visual { display: none; }
  .ld-login-form-side {
    min-height: 100vh;
    padding: 3.5rem 1.5rem 2.5rem;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .ld-login-form-side { padding: 2.5rem 1.25rem 2rem; }
  .ld-login-title { font-size: 2.2rem; }
}