/* ─── RedLineCAD v2 — Auth / Login Page Styles ───────────────────
   Full-page login and signup layout.
   ────────────────────────────────────────────────────────────────── */

/* ─── Auth Shell ─────────────────────────────────────────────────── */
.auth-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-base);
}

/* ─── Left panel (branding) ──────────────────────────────────────── */
.auth-left {
  width: 420px;
  min-width: 420px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle red glow behind the logo */
.auth-left::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(204,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(204,0,0,0.4));
}

.auth-logo-wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.auth-logo-wordmark span { color: var(--rlc-red); }

.auth-tagline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-tagline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.auth-tagline-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rlc-red);
  flex-shrink: 0;
}

.auth-version {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─── Right panel (form) ─────────────────────────────────────────── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
  background: var(--bg-base);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rlc-red);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.auth-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.auth-card-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ─── Auth Form Fields ───────────────────────────────────────────── */
.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--rlc-red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
}

.auth-field input::placeholder { color: var(--text-muted); }

/* ─── Auth Submit Button ─────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  background: var(--rlc-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  margin-top: 8px;
}

.auth-submit:hover { background: var(--rlc-red-bright); }
.auth-submit:active { transform: scale(0.98); }

/* ─── Auth Message ───────────────────────────────────────────────── */
.auth-msg {
  margin-top: 12px;
  font-size: 0.8125rem;
  min-height: 20px;
}

.auth-msg-error {
  color: var(--rlc-red-bright);
  background: rgba(204,0,0,0.08);
  border: 1px solid rgba(204,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.auth-msg-success {
  color: var(--status-available);
  background: rgba(0,204,102,0.08);
  border: 1px solid rgba(0,204,102,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* ─── Auth Switch Link ───────────────────────────────────────────── */
.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--rlc-red);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.auth-switch button:hover { color: var(--rlc-red-bright); }

/* ─── Divider ────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Pending / Suspended Notice ────────────────────────────────── */
.auth-notice {
  background: rgba(255,170,0,0.08);
  border: 1px solid rgba(255,170,0,0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--status-busy);
  line-height: 1.5;
}

/* ─── Mobile: stack panels ───────────────────────────────────────── */
@media (max-width: 767px) {
  .auth-shell {
    flex-direction: column;
  }
  .auth-left {
    width: 100%;
    min-width: unset;
    padding: 32px 24px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: unset;
  }
  .auth-logo-img { width: 48px; height: 48px; }
  .auth-logo-wordmark { font-size: 1.5rem; }
  .auth-tagline { display: none; }
  .auth-version { display: none; }
  .auth-right {
    padding: 24px 20px;
    align-items: flex-start;
  }
}
