.auth-view {
  max-width: 440px;
  margin: 8rem auto;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: fade-in-scale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Glow Effect behind the login card */
.auth-view::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  z-index: -1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

@keyframes fade-in-scale {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-view h2 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-view p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 450;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 1.5rem;
}

.auth-form label {
  display: grid;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font: inherit;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-form input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: translateY(-1px);
}

.auth-form button {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #ffffff;
  min-height: 52px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.5rem;
}

.auth-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(59, 130, 246, 0.5);
}

.auth-form button:active {
  transform: translateY(0);
}

.auth-form button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.4);
  outline-offset: 2px;
}

.auth-error {
  min-height: 1.3em;
  color: var(--color-no);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

.auth-topline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.auth-logout {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logout:hover {
  background: var(--color-no-bg);
  border-color: var(--color-no);
  color: var(--color-no-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08);
}

@media(max-width: 600px) {
  .auth-view {
    margin: 4rem 1rem;
    padding: 2.5rem 1.5rem;
  }
}
