:root {
  --bg-deep: #ede9f6;
  --neon-blue: #2563eb;
  --neon-purple: #7c3aed;
  --neon-pink: #ec4899;
  --glass-border: rgba(255, 255, 255, 0.6);
  --text-primary: #1e1a2e;
  --text-secondary: #4a4563;
  --text-muted: #8a84a0;
  --font-display: "Golos Text", sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  font-family: var(--font-display);
  background: var(--bg-deep);
  color: var(--text-primary);
}

.login-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #e8e0f0 0%, #dce4f8 35%, #e8e0f0 65%, #f0dce8 100%);
}

.login-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-ring {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.06);
  animation: pulse 5s ease-in-out infinite;
}

.ring-large {
  width: 620px;
  height: 620px;
  animation-delay: 1.4s;
}

@keyframes pulse {
  0%,
  100% { opacity: 0.32; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.login-brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.20);
  font-weight: 700;
}

.login-brand-text {
  font-size: 24px;
  font-weight: 600;
}

.login-brand-text span {
  color: var(--neon-purple);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 38px 34px;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(42px) saturate(1.4);
  box-shadow: 0 28px 80px rgba(100, 80, 160, 0.10);
}

.auth-card h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}

.auth-subtitle {
  margin-top: 8px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 28px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(180, 170, 210, 0.20);
  background: rgba(255, 255, 255, 0.45);
}

.auth-tab {
  padding: 11px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(124, 58, 237, 0.10);
  color: var(--neon-purple);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field span {
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(180, 170, 210, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--text-primary);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.auth-btn {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.20);
}

.auth-btn-ghost {
  background: rgba(255, 255, 255, 0.50);
  box-shadow: none;
}

.auth-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.20);
  color: #dc2626;
  font-size: 13px;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .auth-card { padding: 28px 20px; }
  .login-ring, .ring-large { width: 380px; height: 380px; }
}
