/* ============================================================
   MODELYX — /access PAGE STYLESHEET
   Split-panel layout: editorial visual (left) + sign-in form (right).
   Inherits design tokens from landing.css.
   ============================================================ */


/* PAGE — full viewport, no nav, no footer */
.landing-page .access {
  width: 100%;
  min-height: 100vh;
}

.landing-page .access-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}


/* ============================================================
   LEFT PANEL — Editorial visual
   ============================================================ */
.landing-page .access-visual {
  position: relative;
  background: url('/static/assets/landing/Hero01.png') center center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 144px 64px 64px;
  overflow: hidden;
  /* Floating rounded card */
  margin: 24px 0 24px 24px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.landing-page .access-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(10, 8, 4, 0.35) 0%, transparent 80%),
    linear-gradient(135deg, rgba(10, 8, 4, 0.3) 0%, rgba(10, 8, 4, 0.55) 100%);
  z-index: 1;
}

.landing-page .access-visual-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  text-align: center;
}

.landing-page .access-visual-tagline {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-primary);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.landing-page .access-visual-tagline em {
  font-style: italic;
  font-weight: 600;
  color: var(--text-primary);
}


/* ============================================================
   RIGHT PANEL — Sign-in form
   ============================================================ */
.landing-page .access-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  background: var(--foundation);
}

/* Close button — top right */
.landing-page .access-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h2);
  font-weight: 300;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.landing-page .access-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}


/* Form container */
.landing-page .access-form-inner {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Shift content upward via flex centering math */
  margin-bottom: 40px;
}


/* Logo at top of form */
.landing-page .access-brand {
  display: block;
  margin-bottom: 40px;
}

.landing-page .access-logo {
  width: 280px;
  height: auto;
  display: block;
}


/* Headline */
.landing-page .access-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 32px;
}


/* Sub-headline — widen so 2-sentence intro stays on 2 lines (not 3) */
.landing-page .access-sub {
  max-width: 720px;
  margin: 0 auto;
}


/* Form */
.landing-page .access-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-page .access-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(29, 24, 16, 0.6);
  border: 1px solid rgba(52, 45, 35, 0.7);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-page .access-input:hover {
  border-color: var(--text-muted);
}

.landing-page .access-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 2px rgba(201, 160, 99, 0.15);
}

.landing-page .access-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}


/* Submit button — full width */
.landing-page .access-submit {
  width: 100%;
  min-width: 0;
  height: 48px;
  font-size: var(--fs-body);
  letter-spacing: 0.10em;
  margin-top: 4px;
}


/* Message / Error */
.landing-page .access-message,
.landing-page .access-error {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 4px;
}

.landing-page .access-message {
  color: var(--brand-gold);
  background: rgba(201, 160, 99, 0.08);
  border: 1px solid rgba(201, 160, 99, 0.2);
}

.landing-page .access-error {
  /* Batch 4B / audit P7: unified to canonical --rose
     (#e11d48 = rgba(225, 29, 72, …) — same RGB family as the
     dashboard's --rose; bg + border tints kept in the same hue
     family so the error treatment reads consistently). */
  color: var(--rose);
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
}


/* Bottom link */
.landing-page .access-footer-link {
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.landing-page .access-footer-link a {
  color: var(--brand-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-page .access-footer-link a:hover {
  color: var(--text-primary);
}


/* ============================================================
   RESPONSIVE — stack on mobile, hide visual panel
   ============================================================ */
@media (max-width: 900px) {
  .landing-page .access-split {
    grid-template-columns: 1fr;
  }
  .landing-page .access-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  .landing-page .access-form-panel {
    padding: 48px 24px;
  }
  .landing-page .access-close {
    top: 16px;
    right: 16px;
  }
}
