.auth-page {
  min-height: 100vh;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,78,50,.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,78,50,.07) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow:
    0 4px 20px rgba(0,0,0,.4),
    0 24px 60px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.auth-logo img {
  height: 52px;
  width: auto;
}

.auth-tabs {
  display: flex;
  background: #111;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.75rem;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.auth-tab.active {
  background: #E94E32;
  color: #fff;
}

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

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.3px;
}
.auth-field input {
  background: #111;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 9px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.auth-field input:focus {
  outline: none;
  border-color: #E94E32;
  box-shadow: 0 0 0 3px rgba(233,78,50,.15);
}
.auth-field input::placeholder { color: #444; }
.auth-field input.error { border-color: #E94E32; animation: shake 0.35s ease; }

.auth-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background: #E94E32;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.auth-submit:hover:not(:disabled) {
  background: #c73e26;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233,78,50,.35);
}
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  background: rgba(233,78,50,.1);
  border: 1px solid rgba(233,78,50,.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #E94E32;
  display: none;
}
.auth-error.visible { display: block; }

.auth-waiting {
  text-align: center;
  padding: 1rem 0;
  animation: fadeInUp 0.4s ease forwards;
}
.auth-waiting__pulse {
  width: 64px;
  height: 64px;
  background: rgba(233,78,50,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}
.auth-waiting__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(233,78,50,.3);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.auth-waiting h2 { font-size: 1.2rem; color: #fff; margin-bottom: 0.75rem; }
.auth-waiting p  { font-size: 0.85rem; color: #666; line-height: 1.6; }
.auth-waiting__email {
  margin-top: 1.25rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #111;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #E94E32;
  font-weight: 600;
}
.auth-logout-link {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #444;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.2s;
}
.auth-logout-link:hover { color: #E94E32; }
