/* website/css/auth.css — Auth page styling for Not Overloaded! */

:root {
  --bg-page: #07090f;
  --bg-card: rgba(19, 24, 31, 0.7);
  --bg-input: #13181f;
  --border-default: #2a3347;
  --border-focus: #4F7FFF;
  --text-primary: #e8eef5;
  --text-secondary: #8997a8;
  --text-muted: #4a5568;
  --accent-blue: #4F7FFF;
  --accent-blue-hover: #6691ff;
  --accent-red: #f85149;
  --radius-sm: 8px;
  --radius-md: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-page: #f3f4f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-input: #f6f8fa;
    --border-default: #ced4da;
    --text-primary: #1c2333;
    --text-secondary: #57606a;
    --text-muted: #9ca3af;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(ellipse 70% 50% at 25% -5%, rgba(79, 127, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 80% 105%, rgba(129, 140, 248, 0.06) 0%, transparent 65%),
    var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-logo svg {
  width: 32px;
  height: 32px;
}

.auth-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79, 127, 255, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 12.5px;
  color: var(--accent-red);
  margin-top: 6px;
  display: none;
}

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

.btn-submit {
  width: 100%;
  padding: 11px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.2s ease;
  margin-top: 6px;
}

.btn-submit:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 0 16px rgba(79, 127, 255, 0.3);
}

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

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
  display: none;
}

.auth-alert.alert-error {
  display: block;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: var(--accent-red);
}

.auth-alert.alert-success {
  display: block;
  background: rgba(52, 208, 88, 0.1);
  border: 1px solid rgba(52, 208, 88, 0.3);
  color: #34d058;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Callback page */
.callback-status {
  text-align: center;
  padding: 48px 36px;
}

.callback-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.callback-icon.status-connecting { color: var(--accent-blue); }
.callback-icon.status-success { color: #34d058; }
.callback-icon.status-error { color: var(--accent-red); }

.callback-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.callback-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}
