/* Login-Seiten von cosuite ID. Farben nur über die --co-*-Tokens. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--co-app);
  color: var(--co-text);
  font:
    15px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 4px;
  color: var(--co-text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.card {
  background: var(--co-panel);
  border: 1px solid var(--co-border);
  border-radius: 14px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--co-text-muted);
  font-size: 13px;
}

h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
}

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

.address {
  color: var(--co-text);
  font-weight: 600;
  /* Nur umbrechen, wenn die Adresse allein nicht in die Zeile passt. */
  overflow-wrap: anywhere;
}

form {
  margin: 0;
}

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

input[type='email'],
input[type='text'] {
  width: 100%;
  height: 44px;
  margin: 0 0 16px;
  padding: 0 12px;
  border: 1px solid var(--co-border-strong);
  border-radius: 8px;
  background: var(--co-app);
  color: var(--co-text);
  font: inherit;
}

input.code {
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--co-accent);
  outline-offset: 2px;
}

button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--co-accent);
  color: var(--co-on-fill);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  background: var(--co-accent-strong);
}

button.secondary {
  height: auto;
  width: auto;
  padding: 0;
  background: none;
  color: var(--co-text-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button.secondary:hover {
  color: var(--co-text);
  background: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 14px;
}

.notice,
.error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.notice {
  background: var(--co-success-bg);
  border: 1px solid var(--co-success-line);
  color: var(--co-success);
}

.error {
  background: var(--co-danger-bg);
  border: 1px solid var(--co-danger-line);
  color: var(--co-danger);
}

.hint {
  margin: 16px 0 0;
  color: var(--co-text-faint);
  font-size: 13px;
}

a {
  color: var(--co-text-secondary);
}

.footer {
  margin: 16px 4px 0;
  color: var(--co-text-faint);
  font-size: 12px;
}

a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: var(--co-accent);
  color: var(--co-on-fill);
  font-weight: 650;
  text-decoration: none;
}

a.button:hover {
  background: var(--co-accent-strong);
}

a.button.provider {
  border: 1px solid var(--co-border-strong);
  background: var(--co-app);
  color: var(--co-text);
}

a.button.provider:hover {
  background: var(--co-hover);
  border-color: var(--co-text-muted);
}

.providers {
  display: grid;
  gap: 10px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--co-text-faint);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--co-border-strong);
}

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

details.recovery summary {
  cursor: pointer;
  color: var(--co-text-muted);
  margin-bottom: 12px;
}

.qr {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.qr svg {
  width: 200px;
  height: 200px;
}

.secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

ul.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--co-border-strong);
  border-radius: 8px;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--co-border-strong);
}

.list li:last-child {
  border-bottom: 0;
}

.section {
  margin-top: 28px;
}

h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

button.danger {
  background: var(--co-danger-fill);
}
