/* ── Welcome / empty state ────────────────────────────────────────── */

.welcome-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  gap: 12px;
}

.welcome-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  object-fit: contain;
}

.welcome-greeting {
  font-size: 20px;
  font-weight: 500;
  color: #030712;
  line-height: 1.3;
}

/* ── Login section ─────────────────────────────────────────────────── */

.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 32px 24px;
  gap: 24px;
}

.login-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  object-fit: contain;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #030712;
  text-align: center;
}

.login-subtitle {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-top: -12px;
}

.login-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#login-step-email,
#login-step-password {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
  border-color: #7a7afe;
  box-shadow: 0 0 0 3px rgba(122, 122, 254, 0.12);
}

.login-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.login-btn.primary {
  background: #7a7afe;
  color: #fff;
}

.login-btn.primary:hover {
  background: #6366f1;
}

.login-btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.login-btn.secondary:hover {
  background: #e5e7eb;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  display: none;
}

.login-error.visible {
  display: block;
}

.login-btn-link {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 0;
  text-decoration: underline;
  width: 100%;
  text-align: center;
}

.login-btn-link:hover {
  color: #374151;
}

.login-detecting-text {
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
}

/* ── Logout button ─────────────────────────────────────────────────── */

.logout-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.logout-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}
