/* ============================================================
   LOGIN PAGE — split-panel layout
   ============================================================ */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface);
  overflow: hidden;
}

.lbr-auth {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ---- Left panel: dark branding ---- */
.lbr-auth-left {
  flex: 0 0 44%;
  background: var(--surface);
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  overflow: hidden;
}
@media (min-width: 768px) { .lbr-auth-left { display: flex; } }

/* Grid texture */
.lbr-auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
/* Amber glow */
.lbr-auth-left::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201,145,42,.09) 0%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lbr-auth-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: .4px;
  text-decoration: none;
}
.lbr-auth-logo:hover { text-decoration: none; color: var(--cream); }
.lbr-auth-logo i { color: var(--gold); font-size: 1.05rem; }

.lbr-auth-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}
.lbr-auth-hero-eyebrow {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.lbr-auth-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--cream);
  margin-bottom: .875rem;
}
.lbr-auth-hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.lbr-auth-hero-desc {
  font-size: .85rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  line-height: 1.75;
  max-width: 310px;
  margin-bottom: 2rem;
}
.lbr-auth-feature {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .8rem;
  font-weight: 300;
  color: rgba(232,224,208,.55);
  margin-bottom: .5rem;
  letter-spacing: .15px;
}
.lbr-auth-feature i { color: var(--gold); font-size: .7rem; flex-shrink: 0; }

.lbr-auth-footer-note {
  position: relative;
  z-index: 2;
  font-size: .72rem;
  color: var(--muted-on-dark);
  opacity: .4;
}

/* ---- Right panel: form ---- */
.lbr-auth-right {
  flex: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.lbr-form-box {
  width: 100%;
  max-width: 370px;
}

.lbr-form-eyebrow {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.lbr-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -.75px;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.1;
}
.lbr-form-sub {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.lbr-field-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
  display: block;
}
.lbr-field-wrap { position: relative; margin-bottom: 1.1rem; }
.lbr-field-icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c0b8ae;
  font-size: .78rem;
  z-index: 3;
  pointer-events: none;
}
.lbr-field {
  display: block;
  width: 100%;
  height: 46px !important;
  padding: .5rem .875rem .5rem 2.5rem !important;
  font-family: 'Jost', sans-serif;
  font-size: .9rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: #fff !important;
  color: var(--text) !important;
  transition: border-color .17s, box-shadow .17s !important;
}
.lbr-field:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,145,42,.11) !important;
  outline: none !important;
}
.lbr-field::placeholder { color: #c5bdb4; font-weight: 300; }

.lbr-remember-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
}

.lbr-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 48px;
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .5px;
  margin-top: .25rem;
  cursor: pointer;
  transition: background .17s, box-shadow .17s, transform .1s;
}
.lbr-btn-submit:hover {
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(15,12,8,.22);
  transform: translateY(-1px);
}
.lbr-btn-submit:active { transform: translateY(0); }

/* ---- Demo access card ---- */
.lbr-auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lbr-auth-divider::before,
.lbr-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* A miniature of the left branding panel: dark surface, grid
   texture, amber glow — so the card carries the page identity. */
.lbr-demo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem 1.05rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.lbr-demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.lbr-demo-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(201,145,42,.14) 0%, transparent 70%);
  top: -80px;
  right: -70px;
  pointer-events: none;
}
.lbr-demo-card > * { position: relative; z-index: 1; }
.lbr-demo-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.lbr-demo-head i { font-size: .75rem; }
.lbr-demo-text {
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(232,224,208,.55);
  letter-spacing: .15px;
  margin-bottom: .95rem;
}
.lbr-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  height: 42px;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .17s, box-shadow .17s, transform .1s;
}
.lbr-demo-btn:hover {
  background: #b07d22;
  box-shadow: 0 4px 14px rgba(201,145,42,.28);
  transform: translateY(-1px);
}
.lbr-demo-btn:active { transform: translateY(0); }
.lbr-demo-btn:disabled {
  cursor: not-allowed;
  opacity: .6;
  transform: none;
  box-shadow: none;
}
.lbr-demo-creds {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: .68rem;
  color: var(--muted-on-dark);
  text-align: center;
  letter-spacing: .3px;
  margin: .7rem 0 0;
}

.lbr-auth-copyright {
  font-size: .72rem;
  color: #b8b0a5;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
  letter-spacing: .2px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 767.98px) {
  /* The fixed-height split layout becomes a normal scrolling page:
     100vh + overflow:hidden clips content behind mobile browser bars */
  html, body { height: auto; }
  body {
    overflow: auto;
    background: var(--cream);
  }
  .lbr-auth {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .lbr-auth-right {
    padding: 2.25rem 1.35rem;
  }
  /* 16px prevents iOS Safari zoom-on-focus */
  .lbr-field { font-size: 16px !important; }
}
