body.accounts-auth-screen {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #eceff6;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
}

.accounts-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #d7dee9;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 28px 26px 22px;
}

.accounts-auth-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

.accounts-auth-subtitle {
  margin: 8px 0 18px;
  color: #6b7280;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
}

.accounts-auth-heading {
  margin: 2px 0 26px;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.accounts-auth-heading--tight {
  margin-bottom: 18px;
}

.accounts-auth-page-body,
.accounts-auth-form {
  display: grid;
  gap: 20px;
}

.accounts-auth-field {
  margin: 0;
}

.accounts-auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: .95rem;
  font-weight: 400;
  color: #4b5563;
}

.accounts-auth-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0 11px;
  color: #111827;
  background: #fff;
  outline: 0;
  box-shadow: none;
}

.accounts-auth-input::placeholder {
  color: #9ca3af;
}

.accounts-auth-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.12);
}

.accounts-auth-submit,
.accounts-auth-secondary-button {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 400;
  cursor: pointer;
}

.accounts-auth-submit {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

.accounts-auth-submit:hover,
.accounts-auth-submit:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.accounts-auth-secondary-form {
  margin-bottom: 14px;
}

.accounts-auth-secondary-button {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.accounts-auth-secondary-button:hover,
.accounts-auth-secondary-button:focus {
  border-color: #9ca3af;
  background: #f8fafc;
}

.accounts-auth-links {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.accounts-auth-links--centered {
  justify-content: center;
}

.accounts-auth-links a {
  font-size: .95rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 400;
}

.accounts-auth-links a:hover,
.accounts-auth-links a:focus {
  color: #374151;
  text-decoration: underline;
}

.accounts-auth-alert {
  margin-bottom: 12px;
  font-size: .9rem;
  border: 1px solid;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.accounts-auth-alert--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.accounts-auth-alert--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.accounts-auth-alert--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.accounts-auth-alert--info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.accounts-auth-alert-body {
  flex: 1;
}

.accounts-auth-alert-list {
  margin: 0;
  padding-left: 16px;
  flex: 1;
}

.accounts-auth-alert-close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin-top: -2px;
}

.accounts-auth-alert-close:hover,
.accounts-auth-alert-close:focus {
  background: rgba(15, 23, 42, 0.08);
}

.accounts-auth-success-message {
  margin: 0;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.55;
  text-align: center;
}

.accounts-auth-success-message--spacious {
  padding: 18px 0 28px;
}

.accounts-auth-info {
  display: grid;
  gap: 12px;
}

.accounts-auth-info-title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  color: #111827;
}

.accounts-auth-info-text {
  margin: 0;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.55;
  text-align: center;
}

.accounts-auth-password-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.accounts-auth-placeholder {
  color: #6b7280;
  text-align: center;
}

@media (max-width: 480px) {
  .accounts-auth-password-row {
    grid-template-columns: 1fr;
  }

  .accounts-auth-links {
    flex-direction: column;
    align-items: stretch;
  }
}
