/* Login Page Styles */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(102,126,234,0.03), transparent, rgba(118,75,162,0.03), transparent);
  animation: loginBgRotate 30s linear infinite;
}
@keyframes loginBgRotate { to { transform: rotate(360deg); } }

.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
}

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}
.login-brand .brand-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  border-radius: var(--radius-lg);
}
.login-brand h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: 4px;
}

.login-form .form-group { margin-bottom: 20px; }
.login-form .form-input {
  padding: 14px 16px;
  font-size: var(--text-base);
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-top: 8px;
}

.login-error {
  background: var(--error-light);
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: flex; align-items: center; gap: 8px; }

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.login-setup {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.login-setup button {
  font-size: var(--text-sm);
  color: var(--primary-color);
  font-weight: var(--font-medium);
}
.login-setup button:hover { text-decoration: underline; }

/* Loading screen */
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.loading-screen .spinner { width: 40px; height: 40px; border-width: 3px; }
.loading-screen p { color: var(--text-secondary); font-size: var(--text-sm); }
