* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #172033;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-panel {
  width: min(100%, 430px);
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(21, 32, 51, 0.12);
  padding: 30px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 24px;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand span,
.auth-subtitle {
  color: #64748b;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.auth-subtitle {
  margin: 0 0 24px;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dbe3ef;
  font-size: 0.95rem;
}

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

.auth-alert-info,
.auth-alert-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

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

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #334155;
}

.auth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 13px;
  font: inherit;
}

.auth-field input:focus {
  outline: 3px solid rgba(14, 165, 233, 0.2);
  border-color: #0284c7;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.password-wrap button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.auth-submit,
.auth-link-btn {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.auth-submit[aria-busy="true"] {
  opacity: 0.75;
  pointer-events: none;
}

.access-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-link-btn {
  padding: 0 16px;
}

.auth-link-btn.muted {
  background: #e2e8f0;
  color: #334155;
}

@media (max-width: 480px) {
  .auth-page {
    align-items: start;
    padding-top: 22px;
  }

  .auth-panel {
    padding: 22px;
  }
}
