/* AIXBOT TRADING — sign-in / register (dark terminal) */

:root {
  --ax-cyan: #ff8a5c;
  --ax-cyan-dim: #e86b45;
  --ax-profit: #f5c542;
  --ax-ink: #f5f0eb;
  --ax-muted: #a89b92;
  --ax-line: rgba(255, 138, 92, 0.22);
  --ax-surface: #16101c;
  --ax-bg: #0c0610;
  --ax-grad: linear-gradient(125deg, #ff8a5c 0%, #ff5e7a 48%, #c44dff 100%);
  --ax-safe-top: env(safe-area-inset-top, 0px);
  --ax-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ax-font: "DM Sans", system-ui, sans-serif;
  --ax-mono: "DM Sans", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { margin: 0; min-height: 100%; -webkit-text-size-adjust: 100%; }

body.mc-auth {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--ax-font);
  color: var(--ax-ink);
  background:
    radial-gradient(ellipse 90% 55% at 80% -5%, rgba(196, 77, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 45% at 15% 20%, rgba(255, 94, 122, 0.2), transparent 45%),
    var(--ax-bg);
}

body.mc-auth.mc-app .mc-phone {
  background:
    radial-gradient(ellipse 90% 55% at 80% -5%, rgba(196, 77, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 45% at 15% 20%, rgba(255, 94, 122, 0.2), transparent 45%),
    var(--ax-bg);
}

body.mc-auth.mc-app .mc-phone::before {
  display: none;
}

body.mc-auth.mc-app .mc-stage {
  padding: 0;
  min-height: 100dvh;
}

.ax-page {
  width: min(390px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(12px + var(--ax-safe-top))
    22px
    calc(22px + var(--ax-safe-bottom));
}

.ax-hero {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: end;
  min-height: 160px;
  margin: 0 -4px 8px;
}

.ax-brand { padding: 8px 0 10px 4px; }

.ax-mark { width: 72px; height: 58px; display: block; }

.ax-name {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ax-ink);
}

.ax-kicker {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ax-cyan);
  font-family: var(--ax-mono);
}

.ax-robot {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center top;
  justify-self: end;
  margin-right: -4px;
  margin-bottom: -4px;
  border-radius: 16px;
  border: 1px solid var(--ax-line);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.2);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.ax-tag {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ax-muted);
}

.ax-tag b {
  display: block;
  color: var(--ax-profit);
  font-weight: 700;
  font-family: var(--ax-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.ax-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
}

.ax-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 11px;
  color: var(--ax-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ax-switch a svg { width: 18px; height: 18px; }

.ax-switch a.is-on {
  color: #060b14;
  background: var(--ax-grad);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.ax-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
}

.ax-field {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--ax-line);
}

.ax-field:last-of-type { border-bottom: 0; }

.ax-field__ico {
  width: 22px;
  height: 22px;
  color: var(--ax-cyan);
}

.ax-field__ico svg { width: 22px; height: 22px; display: block; }

.ax-field small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
  font-family: var(--ax-mono);
}

.ax-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 4px 0 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ax-ink);
}

.ax-field input::placeholder { color: #4a5a72; font-weight: 500; }

.ax-dial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ax-cyan);
  font-family: var(--ax-mono);
}

.ax-dial svg { width: 12px; height: 12px; color: var(--ax-muted); }

.ax-input-row { display: flex; align-items: center; }

.ax-input-row input { flex: 1; min-width: 0; }

.ax-eye {
  border: 0;
  background: transparent;
  padding: 6px;
  color: var(--ax-muted);
  cursor: pointer;
}

.ax-eye svg { width: 20px; height: 20px; display: none; }
.ax-eye[data-visible="0"] .ic-eye--off,
.ax-eye[data-visible="1"] .ic-eye--on { display: block; }

.ax-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ax-muted);
  line-height: 1.45;
}

.ax-terms input { margin-top: 2px; accent-color: var(--ax-cyan); }

.ax-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--ax-grad);
  color: #060b14;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 102, 255, 0.4);
}

.ax-submit svg { width: 18px; height: 18px; }

.ax-submit:active { transform: translateY(1px); }

.ax-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ax-muted);
  text-align: center;
}

.ax-foot b { color: var(--ax-cyan); font-weight: 700; }

.ax-foot svg { width: 16px; height: 18px; color: var(--ax-profit); flex-shrink: 0; }

.mc-auth-banner__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
