/* ============================================
   TIO HACKS — Login
   ============================================ */

:root {
  --bg: #0A0D12;
  --surface: #131924;
  --border: #262F3F;
  --text: #EDEFF3;
  --text-muted: #8E97A8;
  --accent: #6C5CE7;
  --accent-hover: #7D6EF0;
  --radius: 14px;
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(108, 92, 231, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(242, 184, 75, 0.08), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  animation: tio-card-in 0.5s ease both;
}

@keyframes tio-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(108, 92, 231, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.auth-card:hover::after { opacity: 1; }

.auth-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 20px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin: -18px 0 24px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #0D1219;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}

.form-input::placeholder { color: #566072; }

.form-input:hover,
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 13px;
  margin-top: 6px;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-submit:hover::before { left: 130%; }
.btn-submit:hover { background: var(--accent-hover); box-shadow: 0 10px 28px rgba(108, 92, 231, 0.4); transform: translateY(-1px); }

.auth-switch {
  text-align: center;
  margin-top: 18px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
}

.btn-link:hover { color: var(--accent); }

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
