.auth-modal .modal-dialog {
  max-width: 990px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
}

.auth-modal__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: stretch;
  overflow: hidden;
  min-height: 620px;
  /* min-height: 620px;
  border: none;
  border-radius: 26px;
  padding: 10px;
background: radial-gradient(
    34.29% 51.38% at 25.91% 48.62%,
    rgba(0, 0, 0, 0) 33.81%,
    rgba(0, 0, 0, 0.82) 98.12%
),
url("../images/login.jpg") center center / cover no-repeat; */
background-image: url("../images/bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: -300px 0px;
    height: 100%;
    width: 100%;

isolation: isolate;
}

.auth-modal__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 13, 20, 0.12) 0%, rgba(3, 13, 20, 0.56) 100%),
    linear-gradient(90deg, rgba(4, 15, 24, 0.6) 0%, rgba(4, 15, 24, 0.14) 72%);
  z-index: 0;
}

.auth-modal__panel {
  position: relative;
  min-height: 620px;
  z-index: 1;
}

.auth-modal__panel--visual {
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

.auth-modal__visual-media,
.auth-modal__visual-overlay,
.auth-modal__visual-content {
  position: absolute;
  inset: 0;
}

.auth-modal__visual-media {
  display: none;
}

.auth-modal__visual-overlay {
  display: none;
}

.auth-modal__visual-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px 28px 24px;
}

.auth-modal__brand {
  display: inline-flex;
  align-self: flex-start;
}

.auth-modal__brand-logo {
  width: 126px;
  height: auto;
}

.auth-modal__quote {
  margin: 0;
  max-width: 270px;
}

.auth-modal__quote p {
  margin: 0;
  color: #ffffff;
  font-family: "Inter", sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -0.01em;
}

.auth-modal__panel--form {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  min-height: 100%;
  margin: 0 0 0 auto;
  border-radius: 18px;
  padding: 14px 18px 16px;
  width: min(100%, 520px);
  box-shadow: 0 24px 55px rgba(7, 20, 30, 0.24);
}

.auth-modal__close {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #111111;
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-modal__close:hover {
  color: #0a4b72;
  opacity: 0.9;
}

.auth-modal__form-wrap {
  padding: 18px 12px 12px;
}

.auth-modal__form-wrap.is-hidden {
  display: none;
}

.auth-modal__eyebrow {
  margin: 0 0 8px;
  color: #6b737a;
  font-family: "Manrope", sans-serif !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.auth-modal__heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.auth-modal__title {
  margin: 0;
  color: #004d65;
  font-family: "Inter", sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 6.8ch;
}

.auth-modal__heading-illustration {
  flex: 0 0 auto;
  width: 78px;
  color: #0b3f61;
  margin-top: 4px;
}

.auth-modal__heading-illustration svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.auth-modal__form.is-otp-step {
  gap: 24px;
}

.auth-modal__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal__otp-step[hidden] {
  display: none !important;
}

.auth-modal__label {
  color: #6d7787;
  font-family: "Inter", sans-serif !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-modal__label span {
  color: #e24c4c;
}

.auth-modal__input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #a3acb9;
  border-radius: 6px;
  background: #ffffff;
  color: #11314a;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__input:focus {
  outline: none;
  border-color: rgba(11, 87, 123, 0.36);
  box-shadow: 0 0 0 4px rgba(64, 189, 236, 0.12);
}

.auth-modal__input::placeholder {
  color: #c0c7d1;
  font-weight: 500;
}

.auth-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-modal__actions.is-hidden {
  display: none;
}

.auth-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 142px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: #eceeef;
  color: #747e89;
  font-family: "Inter", sans-serif;
  font-size:14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.auth-modal__submit i {
  font-size: 0.88rem;
}

.auth-modal__submit:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.auth-modal__submit:not(:disabled) {
  background: #FFCB5B;
  color: #224155;
}

.auth-modal__submit:not(:disabled):hover {
  transform: translateY(-2px);
}

.auth-modal__resend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: #173f61;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.auth-modal__resend:hover {
  color: #004d65;
  transform: translateY(-1px);
}

.auth-modal__resend i {
  font-size: 1rem;
}

.auth-modal__resend[hidden] {
  display: none !important;
}

.auth-modal__profile-step {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 26px 12px 12px;
}

.auth-modal__profile-step[hidden] {
  display: none !important;
}

.auth-modal__profile-icon {
     width: 90px;
    margin-bottom: 10px;
    color: #0b3f61;
  
}

.auth-modal__profile-icon svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.auth-modal__profile-eyebrow {
  margin-bottom: 8px;
}

.auth-modal__profile-title {
  margin: 0;
  color: #004d65;
  font-family: "Inter", sans-serif !important;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.auth-modal__profile-subtitle {
     margin: 34px 0 7px 10px;
  color: #70787D;
  font-family: "Manrope", sans-serif !important;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-modal__participant-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 16px;
  justify-content: flex-start;
}

.auth-modal__participant-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 154px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: #eef3f7;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__participant-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 75, 114, 0.08);
}



.auth-modal__participant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #7ecbff;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.auth-modal__participant-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.auth-modal__participant-label {
  color: #40484C;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.auth-modal__participant-name {
  color: #202020;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.auth-modal__participant-arrow {
  color: #173f61;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-modal__profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
}

.auth-modal__add-participant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: #ffca58;
  color: #224155;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__add-participant:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 202, 88, 0.28);
}

.auth-modal__profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 0;
  color: #173f61;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.auth-modal__profile-link:hover {
  color: #004d65;
}

.auth-modal__create-step {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px 12px 12px;
}

.auth-modal__create-step[hidden] {
  display: none !important;
}

.auth-modal__heading-row--create {
  margin-bottom: 32px;
}

.auth-modal__create-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-modal__create-eyebrow {
  margin-bottom: 0;
  font-size: 13px;
}

.auth-modal__create-title {
  margin: 0;
  color: #004d65;
  font-family: "Inter", sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.auth-modal__heading-illustration--create {
  width: 64px;
  margin-top: 0;
}

.auth-modal__create-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 20px;
}

.auth-modal__user-type {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 14px;
  border: none;
  border-radius: 12px;
  background: #eef5f9;
}

.auth-modal__user-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #224155;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.auth-modal__user-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-modal__user-option-label {
  color: #6f7887;
  font-weight: 500;
  margin-right: 8px;
}

.auth-modal__user-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #224155;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.auth-modal__user-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #224155;
  transform: scale(0);
  transition: transform 0.18s ease;
}

.auth-modal__user-option input:checked + .auth-modal__user-dot::after {
  transform: scale(1);
}

.auth-modal__user-text {
  color: #224155;
}

.auth-modal__create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 14px;
}

.auth-modal__create-badges {
  display: flex;
  align-items: center;
  gap: 42px;
}

.auth-modal__create-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff5a24;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 7px 14px rgba(28, 30, 33, 0.3);
}

.auth-modal__create-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 186px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: #ffca58;
  color: #224155;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__create-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 202, 88, 0.28);
}

.auth-modal__create-submit i {
  font-size: 0.95rem;
}

.auth-modal__terms {
  margin: auto 0 0;
  padding: 0 12px 2px;
  color: #70787D;
  font-family: "Manrope", sans-serif !important;
  font-size:14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.auth-modal.fade .modal-dialog {
  transform: scale(0.94) translateY(18px);
  transition: transform 0.28s ease;
}

.auth-modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

body.auth-modal-open .modal-backdrop.show {
  opacity: 1;
  background: rgba(24, 39, 49, 0.42);
  backdrop-filter: blur(12px);
}

.auth-success-modal .modal-dialog {
  max-width: 290px;
  margin: 1.5rem auto;
}

.auth-success-modal__content {
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 22px 22px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(7, 20, 30, 0.24);
  text-align: center;
}

.auth-success-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #22c55e;
  font-size: 36px;
  line-height: 1;
}

.auth-success-modal__title {
  margin: 0;
  color: #10253a;
  font-family: "Inter", sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-success-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 3px;
  background: #ffcb5b;
  color: #10253a;
  font-family: "Inter", sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(255, 203, 91, 0.3);
}

.auth-success-modal__button i {
  font-size: 14px;
}

@media (max-width: 991.98px) {
  .auth-modal .modal-dialog {
    width: calc(100% - 1.5rem);
    margin: 1.5rem auto;
  }

  .auth-modal__content {
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
    min-height: 580px;
  }

  .auth-modal__panel {
    min-height: 580px;
  }

  .auth-modal__title {
    font-size: 2.25rem;
  }

  .auth-modal__panel--form {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .auth-modal .modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .auth-modal__content {
    display: block;
    min-height: auto;
    border-radius: 28px;
    padding: 14px 12px 16px;
    /* background:
      radial-gradient(
        34.29% 51.38% at 25.91% 48.62%,
        rgba(0, 0, 0, 0) 33.81%,
        rgba(0, 0, 0, 0.82) 98.12%
      ),
      url("../images/login.jpg") center center / cover no-repeat; */

    background-image: url("../images/bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
  }

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

  .auth-modal__content::before {
    display: block;
  }

  .auth-modal__panel--visual {
    min-height: 250px;
    background: transparent;
  }

  .auth-modal__visual-media,
  .auth-modal__visual-overlay {
    display: none;
  }

  .auth-modal__visual-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 14px 0;
  }

  .auth-modal__quote {
    max-width: 240px;
    margin-top: 12px;
  }

  .auth-modal__panel--form {
    min-height: auto;
    margin: -32px auto 0;
    border-radius: 22px;
    padding: 14px 14px 18px;
    width: calc(100% - 18px);
    box-shadow: 0 18px 40px rgba(7, 20, 30, 0.24);
  }

  .auth-modal__form-wrap {
    padding: 10px 6px 18px;
  }

  .auth-modal__heading-row {
    margin-bottom: 26px;
  }

  .auth-modal__title {
    font-size: 2rem;
  }

  .auth-modal__heading-illustration {
    width: 64px;
  }

  .auth-modal__actions {
    justify-content: stretch;
  }

  .auth-modal__submit {
    width: 100%;
    height: 46px;
  }

  .auth-modal__participant-grid {
    grid-template-columns: 1fr;
  }

  .auth-modal__participant-card::after {
    display: none;
  }

  .auth-modal__profile-actions {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .auth-modal__profile-icon {
    align-self: flex-start;
    width: 54px;
    margin-bottom: 28px;
  }

  .auth-modal__profile-link,
  .auth-modal__add-participant {
    justify-content: center;
  }

  .auth-modal__create-form {
    gap: 16px;
  }

  .auth-modal__heading-row--create {
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .auth-modal__create-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .auth-modal__heading-illustration--create {
    width: 54px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .auth-modal__user-type {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .auth-modal__user-option-label {
    width: 100%;
    margin-right: 0;
  }

  .auth-modal__create-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .auth-modal__create-badges {
    justify-content: center;
    gap: 24px;
  }

  .auth-modal__create-submit {
    width: 100%;
  }

  .auth-modal__terms {
    padding: 0 8px;
    font-size: 0.88rem;
  }
}

@media (max-width: 575.98px) {
  .auth-modal__panel--visual {
    min-height: 230px;
  }

  .auth-modal__brand-logo {
    width: 104px;
  }

  .auth-modal__quote p {
    font-size:14px;
    font-weight: 400;
  }

  .auth-modal__title {
    font-size: 1.8rem;
    max-width: 8ch;
  }

  .auth-modal__input {
    height: 54px;
    font-size: 0.96rem;
  }

  .auth-modal__panel--form {
    width: calc(100% - 12px);
    margin-top: -30px;
    border-radius: 20px;
  }
}
