/* IdP login/register — matcher analytics auth.css.php */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
}

h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.subtitle,
p.sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 0;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button,
.btn {
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  display: block;
}

button.primary,
button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  margin-top: 8px;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(30, 77, 58, 0.2);
}

button.primary:hover,
button[type="submit"]:hover {
  background: var(--accent-light);
}

.social {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.btn.social {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
}

.btn.social:hover {
  border-color: var(--accent);
}

.error,
.alert-err {
  background: var(--warning-soft);
  border: 1px solid #f0c4b0;
  color: var(--warning);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.foot,
.switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.foot a,
.switch a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.foot a:hover,
.switch a:hover {
  text-decoration: underline;
}

@media (max-width: 440px) {
  .card {
    padding: 28px 20px 24px;
  }
}
