/* auth-register-modal.css — Auth / Desktop / Register / Default (Figma) */

:root {
  --auth-register-card-w: 57.9375rem;
  --auth-register-form-w: 35.25rem;
  --auth-register-field-col-w: 17.0625rem;
  --auth-register-aside-w: 18.75rem;
}

.auth-modal__dialog--register {
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.5625rem;
  width: min(100%, var(--auth-register-card-w));
  min-height: 27.125rem;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  padding-left: 2.375rem;
  overflow: hidden;
}

.auth-modal__register-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.0625rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--auth-register-form-w);
  padding: 1.625rem 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-modal__form--register {
  gap: 1.0625rem;
  width: 100%;
}

.auth-modal__register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--auth-register-field-col-w)));
  gap: 1.125rem;
  width: 100%;
}

.auth-modal__register-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.auth-modal__icon--user {
  width: 0.75rem;
  height: 0.8125rem;
}

.auth-modal__icon--phone {
  width: 0.875rem;
  height: 0.875rem;
}

.auth-modal__register-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.auth-modal__bottom--register {
  width: 100%;
  align-items: flex-start;
}

.auth-modal__bottom--register .auth-modal__google-form {
  width: 100%;
  max-width: var(--auth-register-form-w);
}

.auth-modal__terms {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5625rem;
  cursor: pointer;
}

.auth-modal__terms-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-modal__terms-box {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 0.9375rem;
  height: 0.9375rem;
  margin-top: 0.0625rem;
  border: 1px solid #2206c7;
  border-radius: 2px;
  background: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.auth-modal__terms-input:checked + .auth-modal__terms-box {
  background: #2206c7;
  box-shadow: inset 0 0 0 2px #0b0e2e;
}

.auth-modal__terms-input:focus-visible + .auth-modal__terms-box {
  outline: 2px solid #4a38e0;
  outline-offset: 2px;
}

.auth-modal__terms-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4661;
  color: #a5a2c0;
}

.auth-modal__terms-link {
  color: #2206c7;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-modal__terms-link:hover {
  color: #4a38e0;
}

.auth-modal__register-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.auth-modal__submit--register {
  width: 100%;
  max-width: var(--auth-register-form-w);
}

.auth-modal__benefits {
  box-sizing: border-box;
  flex: 0 0 var(--auth-register-aside-w);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  width: var(--auth-register-aside-w);
  padding: 2.0625rem 1.4375rem 6.875rem;
  background: #04071c;
  border-left: 1px solid #2a305e;
  border-radius: 0 17px 17px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-modal__benefits-title {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.1667;
  color: #ffffff;
}

.auth-modal__benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  width: 100%;
}

.auth-modal__benefit {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
}

.auth-modal__benefit-icon-wrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.9375rem;
  height: 2.9375rem;
  background: #101438;
  border: 1px solid #13183d;
  border-radius: 7px;
}

.auth-modal__benefit-icon {
  display: block;
  max-width: 1.5rem;
  max-height: 1.5rem;
  object-fit: contain;
}

.auth-modal__benefit-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.auth-modal__benefit-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.1429;
  color: #ffffff;
}

.auth-modal__benefit-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4661;
  color: #a5a2c0;
}

@media (max-width: 991px) {
  .auth-modal__dialog--register {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-left: 0;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-modal__register-col {
    max-width: none;
    padding: 1.5rem 1.25rem 1rem;
  }

  .auth-modal__register-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .auth-modal__benefits {
    flex: none;
    width: 100%;
    padding: 1.5rem 1.25rem 1.75rem;
    border-left: 0;
    border-top: 1px solid #2a305e;
    border-radius: 0 0 14px 14px;
  }
}

@media (max-width: 767px) {
  .auth-modal__register-col {
    padding: 1.25rem 1rem 0.75rem;
  }

  .auth-modal__register-col .auth-modal__title {
    font-size: 1.25rem;
  }

  .auth-modal__input {
    font-size: 1rem;
  }

  .auth-modal__benefits {
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 0 0 14px 14px;
  }
}

@media (max-width: 390px) {
  .auth-modal__register-col,
  .auth-modal__benefits {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal__terms-box {
    transition: none;
  }
}
