* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--app-font-family, "Inter");
  background: linear-gradient(180deg, #eaf4fa 0%, #f2f6f9 100%);
  color: #0f172a;
}

body.auth-client-body {
  font-family: var(--app-font-family, "Inter");
  background:
    linear-gradient(180deg, rgba(7, 27, 51, 0.85) 0%, rgba(14, 31, 52, 0.72) 100%),
    radial-gradient(circle at top right, rgba(72, 163, 214, 0.24), transparent 28%),
    url("/images/ccc.png") center center / cover no-repeat;
}


.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #d8e2ea;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-card.auth-card-client {
  max-width: 540px;
  padding: 28px 28px 26px;
  border-radius: 28px;
  border: 1px solid rgba(151, 191, 223, 0.6);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(230, 244, 252, 0.78) 100%);
  box-shadow: 0 28px 60px rgba(3, 18, 38, 0.32);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.auth-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
}

.auth-brand-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #0e7cb4;
}

.auth-card p {
  margin: 0 0 16px 0;
  color: #475569;
}

.auth-client-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #dff0fb;
  color: #0e7cb4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-client-title {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #17233a;
}

.auth-client-copy {
  margin-bottom: 22px !important;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.65;
  color: #46576d !important;
}

.auth-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.auth-step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #dce4f1;
  color: #6b7d96;
  font-size: 14px;
  font-weight: 600;
}

.auth-step-pill.is-active {
  background: #d9eefc;
  color: #0e7cb4;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.auth-card-client .field {
  margin-bottom: 16px;
}

.auth-card-client .field label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #17233a;
}

.auth-card-client .field input,
.auth-card-client .field select {
  min-height: 58px;
  border-radius: 20px;
  border: 1.5px solid #2f9fe0;
  padding: 0 16px;
  font-size: 15px;
  color: #17233a;
  box-shadow: inset 0 0 0 4px rgba(53, 163, 224, 0.08);
}

.auth-card-client .field input:focus,
.auth-card-client .field select:focus {
  outline: none;
  border-color: #0e7cb4;
  box-shadow: inset 0 0 0 4px rgba(53, 163, 224, 0.12), 0 0 0 4px rgba(53, 163, 224, 0.08);
}

.help {
  font-size: 12px;
  color: #64748b;
}

.auth-inline-link {
  margin: -2px 0 12px;
  text-align: right;
}

.auth-inline-link a {
  color: #0e7cb4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.auth-inline-link a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #0e7cb4;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 14px;
  cursor: pointer;
}

.auth-card-client .btn {
  min-height: 48px;
  border-radius: 16px;
  background: #157fba;
  font-size: 15px;
}

.auth-card-client .btn:hover {
  background: #0b6ca2;
}

.auth-button-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid #c8d7e7;
  background: #fff;
  color: #17233a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  background: #0a5c87;
}

.alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.auth-actions a {
  color: #0e7cb4;
  text-decoration: none;
  font-size: 13px;
}

.auth-card-client .auth-actions {
  display: none;
}

@media (max-width: 640px) {
  .auth-wrap {
    padding: 16px;
  }

  .auth-card.auth-card-client {
    padding: 22px 18px 20px;
    border-radius: 24px;
  }

  .auth-client-title {
    font-size: 2.1rem;
  }

  .auth-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-secondary {
    width: 100%;
  }
}
