.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem;
  /* we need this padding since the footer will hide content at the bottom of the container */
  padding-bottom: 5.5rem;
}

@media screen and (max-width: 40em) {
  .auth-container {
    padding: 1.5rem;
    padding-bottom: 4rem;
  }
}

#tos {
  width: 100%;
}

.tos-container {
  max-width: 640px;
  margin: 0 auto;
}

.tos-container h2 {
  margin-bottom: 0.5rem;
}

.tos-version {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.tos-document {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  background: #fafafa;
  font-size: 0.875rem;
  line-height: 1.6;
}

.tos-document h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tos-document h3:first-child {
  margin-top: 0;
}

.tos-error {
  color: #d32f2f;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.tos-checkbox {
  margin-bottom: 1rem;
}

.tos-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.tos-submit {
  width: 100%;
  padding: 0.75rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.tos-submit:hover {
  background: #1d4ed8;
}

/* Consent Screen */
#consent {
  width: 100%;
}

.consent-container {
  max-width: 27.125rem;
  min-width: 27.125rem;
  margin: 0 auto;
  padding: 3rem;
  border: 1px solid var(--ory-theme-border-def, #eee);
  border-radius: 1rem;
  background: var(--ory-theme-background-surface, #fff);
  color: var(--ory-theme-foreground-def, #171717);
}

@media screen and (max-width: 40em) {
  .consent-container {
    max-width: none;
    min-width: 0;
    padding: 1.5rem;
  }
}

.consent-logo {
  display: block;
  max-width: 64px;
  max-height: 64px;
  margin-bottom: 1rem;
}

.consent-heading {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.consent-description {
  color: var(--ory-theme-foreground-muted, #616161);
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}

.consent-scope-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.consent-scope-list li {
  padding: 0.25rem 0;
  font-size: 1rem;
  line-height: 1.75rem;
}

.consent-note {
  color: var(--ory-theme-foreground-muted, #616161);
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 1.5rem;
}

.consent-links {
  display: inline;
  margin-right: 1rem;
}

.consent-links a {
  color: #2563eb;
  font-size: 0.8rem;
  text-decoration: none;
}

.consent-links a:hover {
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.consent-btn-accept {
  flex: 1;
  padding: 0.75rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.consent-btn-accept:hover {
  background: #1d4ed8;
}

.consent-btn-reject {
  flex: 1;
  padding: 0.75rem;
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.consent-btn-reject:hover {
  background: #f5f5f5;
}
