﻿/* =========================================================
   BoomArena — Auth Pages v3.0 "AGENT TERMINAL"
   ========================================================= */

/* ── Page Shell ── */
.at-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background: #060610;
}

.at-bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ══ LEFT VISUAL ══ */
.at-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, rgba(185,69,255,0.03) 100%);
  border-right: 1px solid rgba(0,229,255,0.1);
  min-height: 100vh;
  padding: 2rem;
}

.at-visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 380px;
  width: 100%;
}

/* Logo */
.at-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}
.at-logo-boom {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(0,229,255,0.35);
}
.at-logo-arena {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.5em;
  background: linear-gradient(90deg, #00e5ff, #b945ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tag line */
.at-visual-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.at-tag-line {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(0,229,255,0.6);
  text-transform: uppercase;
}

/* CSS Sphere */
.at-sphere-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-sphere {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #00e5ff 25%, #0044aa 65%, #001133 100%);
  box-shadow: 0 0 40px rgba(0,229,255,0.4), 0 0 80px rgba(0,229,255,0.15), inset 0 -8px 20px rgba(0,0,0,0.5);
  position: relative;
  animation: sphere-float 4s ease-in-out infinite;
  z-index: 2;
}
.at-sphere-shine {
  position: absolute;
  top: 16%; left: 22%;
  width: 24%; height: 18%;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  filter: blur(2px);
}
.at-sphere-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.25);
  animation: ring-spin 5s linear infinite;
}
.at-ring2 {
  inset: -24px;
  border-color: rgba(185,69,255,0.18);
  animation-duration: 8s;
  animation-direction: reverse;
}
@keyframes sphere-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes ring-spin { to{transform:rotateX(65deg) rotate(360deg)} }

/* Explosions */
.at-explosion {
  position: absolute;
  border-radius: 50%;
  animation: auth-exp 2s ease-out infinite;
}
.e1 { width:18px;height:18px;top:8px;right:22px;background:rgba(255,200,0,0.7);animation-delay:0s; }
.e2 { width:12px;height:12px;bottom:18px;right:12px;background:rgba(255,45,149,0.7);animation-delay:0.7s; }
.e3 { width:10px;height:10px;bottom:26px;left:18px;background:rgba(0,229,255,0.7);animation-delay:1.3s; }
@keyframes auth-exp { 0%{opacity:0;transform:scale(0.3)} 40%{opacity:1;transform:scale(1.2)} 100%{opacity:0;transform:scale(0.1) translateY(-20px)} }

/* Stat row */
.at-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}
.at-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 24px;
}
.at-stat-n {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
}
.at-stat-l {
  font-family: var(--font-display);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.at-stat-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.08); }
.blink-dot { animation: blink 1s step-end infinite; }

/* ══ RIGHT FORM PANEL ══ */
.at-form-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
}

/* Terminal Window */
.at-terminal {
  background: #080818;
  border: 1px solid rgba(0,229,255,0.15);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 60px rgba(0,229,255,0.06);
  position: relative;
}

.at-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.at-tdot { width: 9px; height: 9px; border-radius: 50%; }
.at-tdot.r { background: #ff5f57; }
.at-tdot.y { background: #febc2e; }
.at-tdot.g { background: #28c840; }
.at-ttitle {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-left: 6px;
}

.at-terminal-body {
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Prompt header */
.at-terminal-prompt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.at-prompt-line {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.12em;
}
.at-prompt-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(224,224,248,0.45);
}

/* Error banner */
.at-error-banner {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,45,149,0.1);
  border: 1px solid rgba(255,45,149,0.35);
  color: #ff2d95;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}
.at-error-banner.visible { display: flex; }
.at-err-icon { font-size: 0.9rem; }

/* Form */
.at-form { display: flex; flex-direction: column; gap: 1.1rem; }
.at-field { display: flex; flex-direction: column; gap: 5px; }
.at-label {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(0,229,255,0.55);
  text-transform: uppercase;
}
.at-input-wrap { position: relative; }
.at-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.at-input::placeholder { color: rgba(255,255,255,0.25); }
.at-input:focus { border-bottom-color: rgba(0,229,255,0.6); }
.at-input-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #00e5ff, #b945ff);
  transition: width 0.3s ease;
}
.at-input:focus ~ .at-input-line { width: 100%; }

/* Submit button */
.at-submit-btn {
  position: relative;
  width: 100%;
  padding: 13px;
  background: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.45);
  color: #00e5ff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s, filter 0.2s;
  margin-top: 0.4rem;
}
.at-submit-btn:hover { background: rgba(0,229,255,0.2); filter: brightness(1.1); }
.at-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.at-submit-btn .btn-spinner { display: none; }
.at-submit-btn.loading .btn-text { visibility: hidden; }
.at-submit-btn.loading .btn-spinner {
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 16px; height: 16px;
  border: 2px solid rgba(0,229,255,0.3);
  border-top-color: #00e5ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to{transform:translate(-50%,-50%) rotate(360deg)} }

/* Divider */
.at-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0;
}
.at-divider::before,.at-divider::after {
  content:'';flex:1;height:1px;background:rgba(255,255,255,0.06);
}
.at-divider span {
  font-family: var(--font-display);
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

/* Google button */
.at-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.at-google-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* Switch link */
.at-switch {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.at-link {
  color: #00e5ff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.at-link:hover { text-decoration: underline; }

/* ══ SUCCESS OVERLAY ══ */
.at-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #060610;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.at-success-overlay.active { opacity: 1; pointer-events: auto; }
.at-success-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.at-success-icon {
  width: 72px; height: 72px;
  border: 2px solid #00e5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #00e5ff;
  box-shadow: 0 0 30px rgba(0,229,255,0.4);
  animation: success-pulse 0.6s ease;
}
.at-success-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(0,229,255,0.8);
  text-transform: uppercase;
}
@keyframes success-pulse { 0%{transform:scale(0.6);opacity:0} 100%{transform:scale(1);opacity:1} }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .at-auth { grid-template-columns: 1fr; }
  .at-visual { min-height: 40vh; padding: 2rem 1.5rem; }
  .at-sphere { width: 72px; height: 72px; }
  .at-sphere-wrap { width: 110px; height: 110px; }
  .at-form-panel { padding: 1.5rem; min-height: auto; }
  .at-terminal-body { padding: 1.4rem; }
}
@media (max-width: 480px) {
  .at-visual { min-height: 26vh; padding: 1.2rem 1rem; }
  .at-sphere-wrap { width: 78px; height: 78px; }
  .at-sphere { width: 50px; height: 50px; }
  .at-visual-tag { font-size: 0.38rem; letter-spacing: 0.25em; }
  .at-stat-row { gap: 0; }
  .at-stat { padding: 0 8px; font-size: 0.6rem; }
  .at-stat-val { font-size: 0.9rem; }
  .at-form-panel { padding: 1rem 0.8rem; }
  .at-terminal-body { padding: 1rem 0.9rem; gap: 0.75rem; }
  .at-logo-boom { font-size: 2.4rem; }
  .at-logo-arena { font-size: 0.55rem; }
  .at-terminal-prompt { font-size: 0.58rem; }
  .at-input { font-size: 0.78rem; padding: 10px 12px; }
  .at-submit { font-size: 0.65rem; padding: 11px 14px; }
  .at-switch-link { font-size: 0.65rem; }
}