/* ============================================================
   Cortex — Sign In
   Inherits Champions League palette from Home.css.
   Only additive layout + form-specific styles here.
   ============================================================ */

.cx-auth-page { min-height: 100vh; display: flex; flex-direction: column; }

.cx-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
  position: relative;
  z-index: 1;
}

/* Soft radial behind the card */
.cx-auth-main::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 100%);
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(106, 140, 255, 0.18), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

/* ---------------- Card ---------------- */
.cx-auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 36px 28px;
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glass);
  position: relative;
}
.cx-auth-card::before {
  /* chrome hairline highlight on top */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* ---------------- Head ---------------- */
.cx-auth-head { margin-bottom: 24px; }
.cx-auth-head .cx-eyebrow { margin-bottom: 18px; }
.cx-auth-title {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(180deg, #ffffff 0%, #c8cfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-auth-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ---------------- Error banner ---------------- */
.cx-auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.cx-auth-error-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
  flex-shrink: 0;
}

/* ---------------- Form ---------------- */
.cx-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cx-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cx-field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.cx-input-wrap { position: relative; }

.cx-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(4, 9, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cx-input::placeholder { color: var(--text-faint); }
.cx-input:hover { border-color: var(--border-2); }
.cx-input:focus {
  border-color: var(--accent-line);
  background: rgba(4, 9, 24, 0.75);
  box-shadow: 0 0 0 3px rgba(106, 140, 255, 0.18);
}
.cx-input:-webkit-autofill,
.cx-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(4, 9, 24, 0.95) inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--text);
}

.cx-input-wrap .cx-input { padding-right: 42px; }
.cx-input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}
.cx-input-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.cx-auth-submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  padding-top: 13px;
  padding-bottom: 13px;
}

/* ---------------- Foot note ---------------- */
.cx-auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  text-align: center;
}
.cx-auth-foot .cx-dim { margin-right: 4px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 480px) {
  .cx-auth-card { padding: 28px 22px 20px; }
  .cx-auth-title { font-size: 22px; }
}
