/* account.colazy.com: the app's colours (src/theme/ThemeContext.tsx) */
:root {
  --bg: #ffffff;
  --surface: #f4f4f6;
  --border: #dcdce0;
  --text: #111111;
  --text-secondary: #555555;
  --accent: #007aff;
  --on-accent: #ffffff;
  --danger: #d70015;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --border: #3a3a3a;
    --text: #f2f2f2;
    --text-secondary: #b3b3b3;
    --accent: #0a84ff;
    --danger: #ff453a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

main {
  width: 100%;
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 20px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

h1 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.card strong {
  color: var(--text);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

button {
  width: 100%;
  font: inherit;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

button.secondary {
  margin-top: 10px;
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.link {
  display: inline;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 400;
}

.fine {
  margin-top: 20px;
  font-size: 14px;
}

.error {
  color: var(--danger);
  min-height: 1.5em;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}
