:root {
  --auth-ink: #03122b;
  --auth-blue: #0077b6;
  --auth-border: #9aa8bc;
  --auth-muted: #5c6678;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--auth-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.container-main-login {
  min-height: 100vh;
}

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(420px, 40%);
  background: #fff;
}

.auth-image {
  position: relative;
  min-height: 100vh;
  background-position: 50% 50%;
  background-size: cover;
  color: #fff;
}

.auth-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.36), rgb(0 0 0 / 0.08) 62%, transparent);
}

.auth-image-content-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 4.5vw, 72px);
}

.fifa-id-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38em;
  width: max-content;
  text-decoration: none;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.fifa-id-logo--white {
  color: #fff;
}

.fifa-id-logo--dark {
  color: var(--auth-ink);
}

.fifa-id-logo span:last-child {
  letter-spacing: -0.025em;
}

.auth-image-content {
  width: min(790px, 84%);
  margin-bottom: clamp(280px, 31vh, 380px);
}

.auth-image-content h1 {
  max-width: 680px;
  margin: 0 0 1.85rem;
  color: #fff;
  font-size: clamp(54px, 4.5vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.auth-image-content p {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 1.9vw, 31px);
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.auth-content {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(72px, 5.6vw, 108px) 76px 28px 64px;
}

.auth-content-logo {
  display: none;
}

.auth-content-form-container {
  width: min(100%, 614px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-login-view[hidden],
.auth-register-view[hidden],
.auth-register-step-view[hidden] {
  display: none;
}

.auth-content-form {
  padding-top: 0;
}

.auth-content-form-title h1 {
  margin: 0 0 clamp(58px, 6vh, 74px);
  color: var(--auth-ink);
  font-size: clamp(46px, 3vw, 60px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.auth-status {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--auth-blue);
  background: #eef8ff;
  color: var(--auth-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.auth-status.is-error {
  border-left-color: #e40046;
  background: #e400461a;
}

.auth-content-form-field {
  margin-bottom: 2.35rem;
}

.auth-content-form-field label,
.auth-forgot-popup-field label {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--auth-ink);
  font-size: clamp(18px, 1.15vw, 22px);
  line-height: 1.2;
  font-weight: 700;
}

.auth-content-form-field input,
.auth-content-form-field select,
.auth-forgot-popup-field input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--auth-border);
  border-radius: 0;
  background: transparent;
  color: var(--auth-ink);
  font-size: 1.25rem;
  outline: none;
}

.auth-content-form-field input:focus,
.auth-content-form-field select:focus,
.auth-forgot-popup-field input:focus {
  border-bottom-color: var(--auth-ink);
}

.auth-content-form-field select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--auth-ink) 50%), linear-gradient(135deg, var(--auth-ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-password-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  border-bottom: 1px solid var(--auth-border);
}

.auth-password-row input {
  border-bottom: 0;
}

.toggle-eye {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--auth-ink);
  cursor: pointer;
}

.toggle-eye svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.toggle-eye .eye-on {
  display: none;
}

.toggle-eye[aria-pressed="true"] .eye-on {
  display: block;
}

.toggle-eye[aria-pressed="true"] .eye-off {
  display: none;
}

.inputErrorMsgContainer {
  margin-top: 0.6rem;
  color: #e40046;
  font-size: 0.9rem;
  line-height: 1.35;
}

.auth-btn-container {
  margin-bottom: 1.25rem;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-primary {
  border: 1px solid var(--auth-blue);
  background: var(--auth-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #00679f;
}

.btn-outline {
  border: 1px solid var(--auth-ink);
  background: #fff;
  color: var(--auth-ink);
}

.btn-outline:hover {
  background: var(--auth-ink);
  color: #fff;
}

.btn-hyperlink {
  padding: 0;
  border: 0;
  background: transparent;
  color: #006eb6;
  font-size: clamp(18px, 1.15vw, 22px);
  line-height: 1.35;
  cursor: pointer;
}

.auth-content-form-field-acc {
  margin-top: 6.8rem;
}

.auth-content-form-field-acc p {
  margin: 0 0 1rem;
  color: var(--auth-ink);
  font-size: clamp(17px, 1.1vw, 20px);
}

.auth-content-form-footer {
  display: flex;
  gap: 26px;
  align-items: center;
  color: var(--auth-ink);
  font-size: clamp(18px, 1.1vw, 20px);
}

.auth-content-form-footer a {
  color: var(--auth-ink);
  text-decoration: none;
}

.auth-content-form-footer a:hover {
  color: var(--auth-blue);
}

.auth-content-form-footer p {
  margin: 0;
}

.auth-page--register .auth-content {
  padding-top: clamp(42px, 4vw, 54px);
}

.auth-page--register .auth-content-form-container {
  width: min(100%, 628px);
}

.auth-content-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.auth-content-form-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.auth-content-form-header p {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(13px, 0.82vw, 15px);
  line-height: 1.35;
  text-align: right;
}

.auth-content-form-header-steps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.auth-step-dot {
  width: 15px;
  height: 15px;
  border: 1px solid #536072;
  border-radius: 999px;
}

.auth-step-dot--active {
  border-color: #536072;
  background: #536072;
}

.auth-inline-link {
  font-size: inherit;
  line-height: inherit;
}

.auth-back-link {
  color: var(--auth-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-back-link[hidden] {
  display: none;
}

.auth-register-title h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(42px, 3vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.auth-register-title .auth-register-step {
  margin: 0 0 0.25rem;
  color: var(--auth-muted);
  font-size: clamp(24px, 1.6vw, 30px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.auth-register-title h2 {
  margin: 0 0 3.8rem;
  color: var(--auth-ink);
  font-size: clamp(24px, 1.5vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.auth-register-form .auth-status {
  margin-top: -2.4rem;
  margin-bottom: 1.5rem;
}

.auth-register-form .auth-content-form-field {
  margin-bottom: 1.55rem;
}

.auth-register-form .auth-content-form-field label {
  margin-bottom: 0.75rem;
  font-size: clamp(16px, 0.98vw, 18px);
}

.auth-register-form .auth-content-form-field input,
.auth-register-form .auth-content-form-field select {
  min-height: 36px;
  font-size: 1rem;
}

.auth-field-hint {
  margin: -0.5rem 0 0.55rem;
  color: var(--auth-ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.auth-content-form-field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-register-actions {
  margin-top: 2.35rem;
  margin-bottom: 0;
}

.auth-register-actions .btn {
  min-height: 38px;
  padding: 0 1.55rem;
  font-size: 0.78rem;
}

.auth-password-requirements {
  margin: -0.45rem 0 0.65rem;
  color: var(--auth-ink);
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.35;
}

.auth-register-form--step-two .auth-content-form-field {
  margin-bottom: 1.85rem;
}

.auth-register-form--step-two .auth-password-field label {
  margin-bottom: 0.7rem;
}

.auth-consent-list {
  display: grid;
  gap: 1.45rem;
  margin-top: 1.9rem;
}

.auth-checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: flex-start;
  color: var(--auth-ink);
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.35;
}

.auth-checkbox-field input {
  width: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  appearance: none;
  border: 1px solid var(--auth-ink);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.auth-checkbox-field input:checked {
  background-color: var(--auth-blue);
  border-color: var(--auth-blue);
  background-image: linear-gradient(45deg, transparent 58%, #fff 58%), linear-gradient(135deg, #fff 42%, transparent 42%), linear-gradient(45deg, #fff 42%, transparent 42%);
  background-position: 6px 11px, 9px 12px, 4px 12px;
  background-size: 9px 3px, 10px 3px, 8px 3px;
  background-repeat: no-repeat;
}

.auth-checkbox-field a {
  color: var(--auth-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-forgot-popup-container {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(3 18 43 / 0.72);
}

.auth-forgot-popup-container[hidden] {
  display: none;
}

.auth-forgot-popup {
  width: min(100%, 560px);
  padding: 36px;
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.28);
}

.auth-forgot-popup h1 {
  margin: 0 0 1rem;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 500;
}

.auth-forgot-popup p {
  margin: 0 0 2rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-forgot-popup-btn {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 2rem;
}

@media (max-width: 1180px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-image {
    min-height: 480px;
  }

  .auth-image-content-container {
    min-height: 480px;
  }

  .auth-image-content {
    width: min(760px, 100%);
    margin-bottom: 0;
  }

  .auth-content {
    min-height: auto;
  }

  .auth-content-logo {
    display: block;
    margin-bottom: 2rem;
  }
}

@media (max-width: 720px) {
  .auth-image {
    min-height: 390px;
  }

  .auth-image-content-container {
    min-height: 390px;
    padding: 28px;
  }

  .auth-image-content h1 {
    font-size: 44px;
  }

  .auth-image-content p {
    font-size: 21px;
  }

  .auth-content {
    padding: 36px 24px 28px;
  }

  .auth-content-form-title h1 {
    margin-bottom: 42px;
    font-size: 42px;
  }

  .btn {
    width: 100%;
  }

  .auth-content-form-header {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }

  .auth-content-form-header p {
    text-align: left;
  }

  .auth-content-form-field-row {
    grid-template-columns: 1fr;
  }

  .auth-content-form-footer {
    justify-content: center;
    margin-top: 2rem;
  }

  .auth-forgot-popup {
    padding: 28px 22px;
  }

  .auth-forgot-popup-btn {
    flex-direction: column-reverse;
  }
}
