:root {
  --auth-navy: #0a2942;
  --auth-cyan: #087d99;
  --auth-cyan-soft: #e8f7f9;
  --auth-surface: #f6f9fa;
  --auth-line: #dce8ed;
  --auth-ink: #183140;
  --auth-muted: #667b88;
  --auth-font: Aptos, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

.eb-auth-page {
  min-width: 320px;
  margin: 0;
  color: var(--auth-ink);
  background: #fff;
  font-family: var(--auth-font);
  -webkit-font-smoothing: antialiased;
}

.eb-auth-shell {
  min-height: 100vh;
  padding: 0 28px;
}

.eb-auth-page-inner {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
}

.eb-auth-topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--auth-line);
}

.eb-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-navy);
  text-decoration: none;
}

.eb-auth-brand:hover {
  color: var(--auth-navy);
}

.eb-auth-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.eb-auth-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.eb-auth-brand strong {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.eb-auth-brand strong em {
  color: var(--auth-cyan);
  font-style: normal;
}

.eb-auth-brand small {
  margin-top: 5px;
  color: var(--auth-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eb-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.eb-auth-back:hover {
  color: var(--auth-cyan);
}

.eb-auth-form-side {
  display: flex;
  justify-content: center;
  padding: 72px 0 80px;
}

.eb-auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.eb-auth-form-wrap.eb-auth-form-wide {
  max-width: 640px;
}

.eb-auth-form-heading > p {
  margin: 0 0 10px;
  color: var(--auth-cyan);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eb-auth-form-heading h2 {
  margin: 0;
  color: var(--auth-navy);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.eb-auth-form-heading > span {
  display: block;
  margin-top: 11px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.65;
}

.eb-auth-alert {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
  padding: 13px 15px;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.55;
}

.eb-auth-alert p {
  margin: 0;
}

.eb-auth-alert p + p {
  margin-top: 4px;
}

.eb-auth-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.eb-auth-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--auth-navy);
  font-size: 11px;
  font-weight: 700;
}

.eb-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eb-auth-label-row label {
  margin-bottom: 0;
}

.eb-auth-label-row a {
  color: var(--auth-cyan);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.eb-auth-input {
  position: relative;
}

.eb-auth-input > i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #82949e;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.eb-auth-input input,
.eb-auth-select select {
  width: 100%;
  height: 48px;
  color: var(--auth-ink);
  background-color: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  outline: none;
  font-family: var(--auth-font);
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.eb-auth-input input {
  padding: 0 45px 0 41px;
}

.eb-auth-select select {
  padding: 0 41px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #748995 50%), linear-gradient(135deg, #748995 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.eb-auth-input input:focus,
.eb-auth-select select:focus {
  background-color: #fff;
  border-color: var(--auth-cyan);
  box-shadow: 0 0 0 3px rgba(8, 125, 153, 0.09);
}

.eb-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #718692;
  background: transparent;
  border: 0;
  border-radius: 7px;
  transform: translateY(-50%);
  cursor: pointer;
}

.eb-password-toggle:hover,
.eb-password-toggle:focus-visible {
  color: var(--auth-cyan);
  background: var(--auth-cyan-soft);
}

.eb-auth-submit,
.eb-auth-secondary {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 9px;
  font-family: var(--auth-font);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.eb-auth-submit {
  color: #fff;
  background: var(--auth-navy);
  border: 1px solid var(--auth-navy);
}

.eb-auth-submit:hover {
  background: var(--auth-cyan);
  border-color: var(--auth-cyan);
}

.eb-auth-secondary {
  color: var(--auth-navy);
  background: #fff;
  border: 1px solid var(--auth-line);
}

.eb-auth-secondary:hover {
  background: var(--auth-surface);
}

.eb-auth-register {
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 11px;
  text-align: center;
}

.eb-auth-register a,
.eb-auth-meta a {
  color: var(--auth-cyan);
  font-weight: 700;
  text-decoration: none;
}

.eb-auth-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 17px;
  color: #80919b;
  border-top: 1px solid var(--auth-line);
  font-size: 9px;
}

.eb-auth-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eb-auth-meta i {
  color: var(--auth-cyan);
  font-size: 12px;
}

.eb-register-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eb-register-full {
  grid-column: 1 / -1;
}

.eb-password-guidance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  color: var(--auth-muted);
  background: var(--auth-surface);
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.55;
}

.eb-password-guidance i {
  flex: 0 0 auto;
  color: var(--auth-cyan);
  font-size: 13px;
}

.eb-captcha {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px;
}

.eb-captcha-image {
  height: 48px;
  display: flex;
  overflow: hidden;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 9px;
}

.eb-captcha-image img {
  min-width: 0;
  flex: 1;
  object-fit: contain;
}

.eb-captcha-image button {
  width: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--auth-cyan);
  background: var(--auth-cyan-soft);
  border: 0;
  border-left: 1px solid var(--auth-line);
  font-size: 16px;
  cursor: pointer;
}

.eb-auth-status-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--auth-cyan);
  background: var(--auth-cyan-soft);
  border-radius: 11px;
  font-size: 21px;
}

.eb-auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.eb-auth-actions form {
  width: 100%;
}

@media (max-width: 767px) {
  .eb-auth-shell {
    padding: 0 20px;
  }

  .eb-auth-topbar {
    min-height: 82px;
  }

  .eb-auth-brand small {
    display: none;
  }

  .eb-auth-back {
    font-size: 0;
  }

  .eb-auth-back i {
    font-size: 18px;
  }

  .eb-auth-form-side {
    padding: 52px 0 60px;
  }

  .eb-auth-form-heading h2 {
    font-size: 29px;
  }

  .eb-register-form,
  .eb-captcha {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .eb-auth-shell {
    padding: 0 16px;
  }

  .eb-auth-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
