/*
  Login / auth chrome only — hero, shells, alerts. Depends on tokens + base.
*/

body.et-login {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(82, 82, 91, 0.14), transparent 28%),
    linear-gradient(135deg, var(--color-bg-subtle), var(--color-bg-muted));
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  overflow-x: hidden;
  overflow-y: auto;
}

body.et-login::before,
body.et-login::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

body.et-login::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -70px;
  background: rgba(220, 38, 38, 0.12);
}

body.et-login::after {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -90px;
  background: rgba(63, 63, 70, 0.12);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-shell);
  overflow: hidden;
}

.hero-panel {
  position: relative;
  padding: 48px;
  background:
    linear-gradient(160deg, rgba(24, 24, 27, 0.98), rgba(39, 39, 42, 0.95)),
    linear-gradient(135deg, rgba(220, 38, 38, 0.22), transparent);
  color: var(--color-hero-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.35), transparent 70%);
}

.hero-top,
.hero-bottom {
  position: relative;
  z-index: 1;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-lg);
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(247, 249, 252, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-title,
.hero-panel h1,
.login-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: rgba(247, 249, 252, 0.72);
  font-size: 0.95rem;
}

.hero-panel h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.hero-copy {
  max-width: 540px;
  color: rgba(247, 249, 252, 0.82);
  font-size: 1.03rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: 30px;
}

.feature-chip {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.feature-chip strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.feature-chip span {
  display: block;
  color: rgba(247, 249, 252, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-note {
  max-width: 430px;
  padding: var(--space-md) 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 249, 252, 0.78);
  line-height: 1.6;
}

.login-panel {
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.login-card {
  width: min(420px, 100%);
  padding: 34px 30px;
  border-radius: var(--radius-xl);
  background: var(--color-surface-strong);
  border: 1px solid rgba(24, 24, 27, 0.08);
  box-shadow: var(--shadow-card);
}

.login-mini-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.login-mini-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.14);
}

.login-mini-brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.login-mini-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.login-copy {
  margin: 0 0 var(--space-lg);
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.field {
  margin-bottom: 16px;
}

.et-login #error-msg {
  display: none;
  margin-bottom: var(--space-md);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--color-brand-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.et-login #file-protocol-hint {
  display: none;
  margin-bottom: var(--space-md);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 600;
}

.et-login #file-protocol-hint code {
  font-weight: 700;
  font-size: 0.86em;
  word-break: break-all;
}

.login-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.login-footer strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  body.et-login {
    display: block;
    padding: var(--space-md);
  }

  .auth-shell {
    display: block;
    width: min(460px, 100%);
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-panel {
    display: none;
  }

  .login-panel {
    padding: 0;
    background: transparent;
  }

  .login-card {
    width: 100%;
  }

  .login-mini-brand {
    display: flex;
  }
}

@media (max-width: 560px) {
  body.et-login {
    padding: var(--space-sm);
  }

  .hero-panel,
  .login-card {
    border-radius: var(--space-lg);
  }

  .hero-panel h1 {
    font-size: 2.3rem;
  }

  .login-card {
    padding: 26px 22px;
  }
}
