body {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  font-family: 'Orbitron', Arial, sans-serif;
  color: #fff;
  background: url('/images/bg.png') no-repeat center top;
  background-size: cover;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Центрируем карточку */
.login-center-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;   /* под шапку */
  padding-bottom: 64px; /* под футер */
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.sonic-header {
  width: 100%;
  background: linear-gradient(90deg, #171b2d 40%, #292b67 100%);
  box-shadow: 0 2px 24px #00ffe7c0, 0 1px 0 #181b2f;
  min-height: 70px;
  position: fixed;
  top: 0; left: 0; z-index: 100;
  animation: fadeInDown 1.2s;
  transition: box-shadow 0.28s cubic-bezier(.32,1.16,.57,.97);
}

.header-content {
  display: flex;
  align-items: center;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 24px;
}

.logo-animate {
  font-size: 2.25rem;
  letter-spacing: 3px;
  font-weight: 900;
  background: linear-gradient(90deg,#00ffe7,#fff4ea,#00ffe7,#ff48ea,#00ffe7,#0a70ff,#00ffe7);
  background-size: 500% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoRainbow 6s linear infinite;
  text-shadow: 0 0 24px #00ffe7a2, 0 0 6px #0ff4;
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 0;
  line-height: 1;
}

@keyframes logoRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.burger {
  width: 40px; height: 40px; background: none; border: none;
  display: none; flex-direction: column; justify-content: center; align-items: center;
  cursor: pointer; z-index: 120;
}
.burger-bar {
  display: block; width: 28px; height: 4px; background: #00ffe7;
  margin: 3px 0; border-radius: 3px; box-shadow: 0 0 6px #00ffe7a7; transition: all 0.2s;
}
.burger.open .burger-bar:nth-child(1) { transform: rotate(45deg) translateY(8px);}
.burger.open .burger-bar:nth-child(2) { opacity: 0;}
.burger.open .burger-bar:nth-child(3) { transform: rotate(-45deg) translateY(-8px);}
.nav-links {
  display: flex; gap: 2.1rem; align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none; font-size: 1.12rem; padding: 9px 12px;
  border-radius: 12px;
  margin-left: 14px;
  font-weight: 700; background: none; border: none; outline: none;
  letter-spacing: 0.7px; position: relative;
  transition: color 0.18s, background 0.16s, text-shadow 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #00ffe7;
  background: none;
  text-shadow: 0 0 18px #00ffe7, 0 0 40px #09f4;
  box-shadow: none;
  transform: none;
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .header-content { padding: 0 8px; }
  .sonic-header { min-height: 62px; }
  .nav-links {
    position: fixed; left: 0; top: 64px; width: 100vw;
    flex-direction: column; gap: 0; background: linear-gradient(130deg,#171b2d 90%, #00ffe710 100%);
    box-shadow: 0 6px 32px #00ffe7a7; border-radius: 0 0 16px 16px;
    z-index: 120; padding: 14px 0 10px 0;
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.275 cubic-bezier(.29,1.27,.61,.91), opacity 0.18s;
    justify-content: center; align-items: center;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: all;
  }
  .nav-links a {
    width: 99vw; text-align: center; margin: 0; padding: 15px 0;
    border-radius: 10px; font-size: 1.13rem; box-shadow: none; background: none;
    border-bottom: 1px solid #00ffe73d;
    display: block;
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* === Карточка входа и регистрации === */
.auth-wrapper {
  max-width: 370px;
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 0 30px #00ffe7b7, 0 0 12px #00ffe7b7;
  padding: 44px 29px 34px 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(17,30,53,0.33);
  backdrop-filter: blur(3.5px);
  z-index: 10;
}

@media (max-width: 700px) {
  .login-center-container { padding-top: 72px; padding-bottom: 28px; }
  .auth-wrapper { max-width: 98vw; padding: 6vw 2vw 7vw 2vw; border-radius: 16px;}
}
@media (max-width: 450px) {
  .login-center-container { padding-top: 58px; }
  .auth-wrapper { max-width: 99vw; padding: 5vw 1vw 7vw 1vw; border-radius: 12px;}
  .auth-form input, .auth-form button { font-size: 1em; padding-left: 10px; padding-right: 10px;}
  .input-row { margin-bottom: 10px; }
}

/* --- Табы --- */
.auth-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 16px #00ffe7a0;
  background: rgba(0,255,231,0.08);
}

.auth-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 0;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00ffe7;
  background: rgba(13, 23, 45, 0.86);
  border: none;
  outline: none;
  border-right: 1px solid #00ffe777;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
  box-shadow: none;
  margin: 0;
  text-align: center;
}
.auth-tab-btn:last-child {
  border-right: none;
}
.auth-tab-btn.active {
  background: linear-gradient(90deg, #00ffe7 60%, #10f9ff 100%);
  color: #171b2d;
  text-shadow: 0 0 6px #00ffe7cc;
  box-shadow: 0 2px 12px #00ffe7cc, 0 1px 0 #00ffe7b7;
  z-index: 2;
}
@media (max-width: 450px) {
  .auth-tabs {
    gap: 0;
    margin-bottom: 18px;
  }
  .auth-tab-btn {
    font-size: 0.97rem;
    padding: 10px 0;
  }
}

/* --- Поля формы --- */
.auth-logo {
  text-align: center;
  color: #00ffe7;
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 0 18px #00ffe7a1, 0 0 6px #00ffe7a1;
}
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.input-row {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 16px;
}
.input-icon {
  color: #00ffe7;
  font-size: 1.4rem;
  margin-right: 8px;
}
.input-row input[type="email"], .input-row input[type="password"], 
.input-row input[type="text"], .input-row input[type="tel"], 
.input-row input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 2px solid #00ffe7c0;
  background: #181f39b2;
  color: #fff;
  font-size: 1.1rem;
  font-family: Orbitron, Arial, sans-serif;
  outline: none;
  box-shadow: 0 0 9px #00ffe76a inset;
  transition: border 0.18s, box-shadow 0.18s;
}
.input-row input:focus {
  border: 2.5px solid #00ffe7;
  box-shadow: 0 0 18px #00ffe7a1;
  background: #232b4b;
}
.input-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ffe7c0;
  font-size: 1.25rem;
  cursor: pointer;
  user-select: none;
}

.input-tooltip { display: none !important; }

.terms-row, .captcha-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
  font-size: 1.06rem;
}
.terms-row label, .captcha-row label {
  margin-left: 8px;
  color: #b5fad7;
  font-size: 1.02rem;
}
.terms-row a {
  color: #00ffe7;
  text-decoration: underline;
  font-weight: 700;
}
.btn-auth {
  background: linear-gradient(90deg, #00ffe7 0%, #10f9ff 100%);
  color: #131fa3;
  font-weight: bold;
  border: none;
  border-radius: 13px;
  padding: 13px 0;
  width: 100%;
  font-size: 1.15rem;
  margin-top: 11px;
  margin-bottom: 8px;
  box-shadow: 0 0 14px #00ffe7cc;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s, transform 0.12s;
}
.btn-auth:hover {
  background: #96ffd6;
  color: #181b2f;
  box-shadow: 0 0 22px #00ffe7cc;
  transform: scale(1.03);
}
.auth-msg {
  text-align: center;
  min-height: 22px;
  color: #ff5ebe;
  font-size: 1.05rem;
  margin-top: 9px;
  margin-bottom: 3px;
  font-family: Orbitron, Arial, sans-serif;
  letter-spacing: 0.3px;
}
.auth-links {
  width: 100%; text-align: right; margin-top: 0; margin-bottom: 0;
}
.auth-links a {
  color: #00ffe7;
  text-decoration: underline;
  font-size: 0.97rem;
  transition: color 0.15s;
}
.auth-links a:hover { color: #fff; }

.popup-bg { position: fixed; inset: 0; background: #07e01eee; z-index: 120; }
.popup-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  min-width: 300px; max-width: 97vw;
  background: linear-gradient(126deg,#171f39 80%, #0b2448 100%);
  border-radius: 18px;
  box-shadow: 0 33px #00ffe7c0;
  z-index: 121; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 24px 26px 24px;
}
.popup-title { color: #00ffe7; font-size: 1.17rem; font-weight: 700; margin-bottom: 7px;}
.popup-modal input[type="email"], .popup-modal input[type="password"] {
  width: 96%; margin-bottom: 7px; padding: 9px 13px; border-radius: 8px;
  background: #23254d; color: #fff; font-family: Orbitron; font-size: 1.03rem;
  box-shadow: 0 0 7px #00ffe7bb inset;
  border: 2px solid #00ffe7c1;
}
.popup-actions { display: flex; gap: 17px; margin-top: 9px;}
.popup-links { margin-top: 13px; }
.popup-links a, .popup-links button { color: #00ffe7; background: none; border: none; cursor: pointer; font-size: 1em; text-decoration: underline; margin-right: 12px;}
.popup-links a:hover, .popup-links button:hover { color: #fff; }
.auth-success {
  position: fixed; top: 25vh; left: 50%; transform: translateX(-50%);
  background: #0d23fa; border-radius: 17px; box-shadow: 0 31px #00ffe7c9;
  text-align: center; z-index: 140; padding: 29px 34px;
}
.auth-success-icon { color: #00ffe7; font-size: 2.8rem; margin-bottom: 7px;}
.auth-success-msg { color: #fff; font-size: 1.16rem;}
.sonic-footer {
  width: 100%;
  background: linear-gradient(90deg, #171b2d 70%, #253479 100%);
  position: fixed; left: 0; bottom: 0; z-index: 99;
  box-shadow: 0 -2px 16px #00ffe7a3;
}
.footer-content {
  max-width: 1400px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 1.08rem; color: #b6faff; letter-spacing: 1px;
}
.footer-social a {
  font-size: 1.28rem; margin-left: 22px;
  text-decoration: none; transition: filter 0.18s, transform 0.15s;
  filter: drop-shadow(0 0 4px #00ffe7a0);
}
.footer-social a:hover {
  filter: brightness(1.9) drop-shadow(0 0 8px #fff8);
  transform: scale(1.17);
}
@media (max-width: 700px) {
  .header-content { flex-direction: row; }
  .footer-content { font-size: 0.97rem }
  .nav-links { font-size:1.06rem }
}
