@use '../styles/base/tokens';

:root,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--claude-bg);
  color: var(--claude-text);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.auth-card {
  width: min(100%, 390px);
  padding: 30px;
  border-radius: 18px;
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-control-border);
  box-shadow: var(--theme-shadow-mid);
  backdrop-filter: blur(8px);
}

.auth-title {
  margin: 0;
  font-size: 1.4rem;
}

.auth-subtitle {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--claude-text-secondary);
}

.auth-form-group {
  margin-top: 14px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--claude-text-secondary);
}

.auth-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--theme-control-border);
  background: var(--theme-surface-strong);
  color: var(--claude-text);
  padding: 11px 12px;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--claude-accent-strong);
  box-shadow: 0 0 0 3px var(--claude-highlight);
}

.auth-button {
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 999px;
  min-height: 44px;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--claude-accent), var(--claude-accent-strong));
  color: var(--on-accent);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.auth-button:disabled,
.auth-secondary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-secondary-button {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  min-height: 42px;
  border: 1px solid var(--claude-accent-strong);
  background: var(--theme-surface-strong);
  color: var(--claude-accent-strong);
  cursor: pointer;
}

.auth-error {
  min-height: 1.2em;
  margin-top: 12px;
  color: var(--state-danger);
  font-size: 0.86rem;
}

.auth-link {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--claude-text-secondary);
}

.auth-link a {
  color: var(--claude-accent-strong);
  text-decoration: none;
}
