/* auth.css — дизайн формы как на скрине, полностью красная палитра */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #3b060a, #090208 55%, #040105);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: #fff;
}

.auth-card {
  width: 360px;
  max-width: 92vw;
  background: #080508;
  border-radius: 28px;
  padding: 26px 26px 26px;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.04);
}

.auth-logo {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.auth-logo span:first-child {
  color: #ff4c60; /* основной акцент под градиент */
}

.auth-logo span:nth-child(2) {
  color: #ffffff;
}

.auth-logo span:nth-child(3) {
  color: #ff1050; /* малиновый из градиента */
}

.auth-logo .fox {
  margin-left: 4px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  border-radius: 999px;
  padding: 10px 0;
  border: 1px solid #2a2a2c;
  background: #0b050a;
  color: #f2f2f2;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s, border-color .18s;
}

.auth-tab.active {
  background:
    radial-gradient(circle at 0 0, rgba(255, 76, 96, .7) 0, rgba(255, 76, 96, .15) 45%, transparent 75%),
    linear-gradient(135deg, rgba(255, 63, 63, .9), rgba(255, 16, 80, .9));
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .9);
  color: #050509;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-label {
  font-size: 0.78rem;
  color: #c0c0c8;
  margin-bottom: 4px;
}

.auth-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid #27272d;
  background: #050306;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.auth-input::placeholder {
  color: #6b6b75;
}

.auth-input:focus {
  border-color: rgba(255, 76, 96, .9);
  box-shadow: 0 0 0 1px rgba(255, 76, 96, .4);
}

.auth-button {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 11px 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 0 0, rgba(255, 76, 96, .7) 0, rgba(255, 76, 96, .15) 45%, transparent 75%),
    linear-gradient(135deg, rgba(255, 63, 63, .9), rgba(255, 16, 80, .9));
  border-color: transparent;
  color: #050509;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .9);
  transition: filter .18s, transform .18s;
}

.auth-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-bottom-link {
  margin-top: 12px;
  font-size: 0.78rem;
  text-align: center;
  color: #ff4c60;
}

.auth-bottom-link a {
  color: inherit;
}

.auth-error {
  background: #3a0d13;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #ffb3b3;
  border: 1px solid rgba(255,70,70,0.55);
  margin-bottom: 10px;
}

.auth-success {
  background: #112216;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #aaffc8;
  border: 1px solid rgba(80,200,150,0.5);
  margin-bottom: 10px;
}

/* Жёсткий оверрайд цветов кнопок */

.auth-tab.active,
.auth-tab.active:focus {
  background:
    radial-gradient(circle at 0 0, rgba(255, 76, 96, .7) 0, rgba(255, 76, 96, .15) 45%, transparent 75%),
    linear-gradient(135deg, rgba(255, 63, 63, .9), rgba(255, 16, 80, .9)) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .9) !important;
  color: #050509 !important;
}

.auth-button,
.auth-button:focus,
button[type="submit"],
input[type="submit"] {
  background:
    radial-gradient(circle at 0 0, rgba(255, 76, 96, .7) 0, rgba(255, 76, 96, .15) 45%, transparent 75%),
    linear-gradient(135deg, rgba(255, 63, 63, .9), rgba(255, 16, 80, .9)) !important;
  border-color: transparent !important;
  color: #050509 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .9) !important;
}
