/* Auth pages styled after the original VB Tipp neon index. */

:root {
  color-scheme: dark;
  --auth-bg: #000;
  --auth-panel: rgba(0, 0, 0, 0.7);
  --auth-text: #fff;
  --auth-muted: rgba(255, 255, 255, 0.78);
  --auth-faint: rgba(255, 255, 255, 0.48);
  --auth-border: rgba(255, 255, 255, 0.12);
  --auth-cyan: #18f7ff;
  --auth-pink: #ff2bd0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro", sans-serif;
}

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

body.auth-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro", sans-serif;
}

#neon-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(480px, 100%);
  padding: 2rem 1.25rem;
  border: 1px solid var(--auth-border);
  border-radius: 1.5rem;
  background: var(--auth-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.auth-card-register {
  width: min(520px, 100%);
}

.auth-card-register .auth-header {
  margin-bottom: 1.35rem;
}

.auth-header {
  margin-bottom: 1.65rem;
}

.auth-title {
  margin: 0 0 0.5rem;
  color: var(--auth-text);
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.auth-subtitle {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.98rem;
  letter-spacing: 0;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 49, 49, 0.42);
  border-radius: 0.75rem;
  background: rgba(255, 49, 49, 0.14);
  color: #ff9b9b;
  font-size: 0.92rem;
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
}

.auth-field {
  text-align: left;
}

.auth-label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--auth-faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}

.auth-input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--auth-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--auth-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  padding: 0.72rem 0.95rem;
  transition: border-color 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-input:focus {
  border-color: var(--auth-cyan);
  background: rgba(24, 247, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(24, 247, 255, 0.16),
    0 0 18px rgba(24, 247, 255, 0.25);
}

.auth-btn,
.auth-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

.auth-btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 1.8rem;
}

.auth-btn-primary {
  border-color: var(--auth-cyan);
  box-shadow: 0 0 16px rgba(24, 247, 255, 0.6);
}

.auth-btn-primary:hover,
.auth-btn-primary:focus-visible {
  background: rgba(24, 247, 255, 0.1);
  box-shadow: 0 0 28px rgba(24, 247, 255, 0.76);
  transform: translateY(-1px);
}

.auth-footer {
  margin: 1.2rem 0 0;
  color: var(--auth-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-footer a {
  min-height: 2.45rem;
  margin-left: 0.5rem;
  padding: 0.62rem 1.35rem;
  border-color: var(--auth-pink);
  box-shadow: 0 0 16px rgba(255, 43, 208, 0.5);
  vertical-align: middle;
}

.auth-footer a:hover,
.auth-footer a:focus-visible {
  background: rgba(255, 43, 208, 0.1);
  box-shadow: 0 0 26px rgba(255, 43, 208, 0.7);
  color: var(--auth-text);
}

@media (min-width: 700px) {
  .auth-card {
    padding: 3rem 2rem;
  }

  .auth-title {
    font-size: 3.75rem;
  }
}

@media (max-width: 420px) {
  .auth-page {
    align-items: flex-start;
    padding-top: 2.75rem;
  }

  .auth-title {
    font-size: 2.05rem;
  }

  .auth-footer a {
    width: 100%;
    margin: 0.65rem 0 0;
  }
}
