* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #ebebeb;
  overflow-x: hidden;
}
a {
  text-decoration: none;
}

.container {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
  width: 100%;
}

.left-panel {
  width: clamp(600px, 40vw, 792px);
  height: 100vh;
  background: linear-gradient(to right, #4FA9FF, #2651FF);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
/* Для alertModalBackdrop можно переопределить display:none inline, если нужно */
#alertModalBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

#alertModalBackdrop.active {
  display: flex !important;
}




.title {
  font-size: 64px;
  font-weight: 600;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 40px;
}

.laptop-image {
  width: 555px;
  height: auto;
  margin-bottom: 40px;
}

.welcome {
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 10px;
}

.welcome-subtext {
  font-size: 24px;
  font-weight: 300;
  max-width: 500px;
}


.right-panel {
  width: 100%;
  height: 100vh;
  background-color: #EBEBEB;
  display: flex;
  justify-content: center;
  align-items: center;
}


.form-wrapper {
  width: 100%;
  max-width: 640px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* было center */
  text-align: left; /* было center */
}


.form-title {
  font-size: 64px;
  font-weight: 500;
  color: #3675FE;
  margin-bottom: 20px;
  position: relative;
  left: -25px;
}

.form-subtext {
  font-size: 20px;
  color: #7C7C7C;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  position: relative;
  left: -22px;
}

.form-info {
  font-size: 18px;
  color: #7C7C7C;
  margin-bottom: 30px;
  position: relative;
  left: -22px;
}

.register-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input {
  font-size: 20px;
  border: 1px solid #A2A2A2;
  border-radius: 10px;
  padding: 11px 20px;
  margin-bottom: 20px;
  color: #141414;
  background: none;
}


.full-width {
  width: 616px;
  height: 51px;
}

.row {
  display: flex;
  gap: 24px;
  margin-bottom: 0px;
}

.half-width {
  width: 296px;
  height: 52px;
}
.terms {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #7C7C7C;
  gap: 10px;
  margin-top: 0px;
  margin-bottom: 20px;
  position: relative;
  left: -114px;
}

.terms a {
  color: #3675FE;
  text-decoration: none;
}

.buttons {
  display: flex;
  gap: 24px;
}

.btn {
  width: 296px;
  height: 52px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  border: none;
}

.primary {
  background-color: #3675FE;
  color: white;
}

.secondary {
  background: none;
  color: #3675FE;
  border: 1px solid #3675FE;
}
.password-wrapper {
  position: relative;
  width: 296px;
}


.password-wrapper input {
  width: 100%;
  height: 52px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 38%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.password-wrapper input:not(:placeholder-shown) + .toggle-password {
  display: flex;
  opacity: 1;
}

.eye-icon {
  width: 20px;
  height: 20px;
  stroke: #7c7c7c;
  stroke-width: 2;
  pointer-events: none;
}
.terms.invalid {
  outline: 1px solid red;
  border-radius: 4px;
  padding: 6px;
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* 🔵 Create account hover & active */
.btn.primary:hover {
  background-color: #2f65df;
  transition: background-color 0.3s ease;
}

.btn.primary:active {
  background-color: #244fb3;
  transform: scale(0.98);
}

/* ⚪ Back to main page hover & active */
.btn.secondary {
  background: none;
  color: #3675FE;
  border: 1px solid #3675FE;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.secondary:hover {
  background-color: #3675FE;
  color: white;
}

.btn.secondary:active {
  background-color: #2f65df;
  transform: scale(0.98);
}
.login-link {
  position: relative;
  color: #3675FE;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
}

/* Эффект подчеркивания */
.login-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #3675FE;
  transition: width 0.3s ease, left 0.3s ease;
}

/* При наведении — подчеркивание растёт из центра */
.login-link:hover::after {
  width: 100%;
  left: 0;
}
@media (max-width: 1560px) {


}

/* 🔹 ДОБАВИТЬ В КОНЕЦ ТВОЕГО CSS-ФАЙЛА register.css */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-window {
  margin: 0 auto;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-title {
  font-size: 24px;
  color: #3675FE;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.code-inputs {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-bottom: 20px;
}

.code-inputs input {
  width: 40px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.2s ease;
}

.code-inputs input:focus {
  border-color: #3675FE;
}

.resend-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}

.resend-link {
  color: #3675FE;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.resend-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #3675FE;
  transition: width 0.3s ease, left 0.3s ease;
}

.resend-link:hover::after {
  width: 100%;
  left: 0;
}

.resend-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.timer-text {
  font-size: 13px;
  color: #888;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #000;
}
/* Успешная верификация */
.code-inputs input.success {
  border-color: #28a745 !important;
  transition: border-color 0.3s ease;
}

/* Ошибка верификации */
.code-inputs input.error {
  border-color: #dc3545 !important;
}

/* Анимация тряски */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.code-inputs input.shake {
  animation: shake 0.3s;
}
@media (max-width: 1300px) {
.container {
    flex-direction: column;
}
.left-panel {
  display: none;
    width: 100%;
    height: auto;
    padding: 60px 20px;
  }
  .right-panel {
    height: auto;
    padding: 60px 20px;
  }
}
@media (max-width: 768px) {
  
  
  .form-title {
    font-size: 40px;
    text-align: center;
    left: 0px;
  }

  .form-subtext {
    font-size: 16px;
    align-items: center;
    text-align: center;
    left: 0px;
  }

  .form-info {
    font-size: 15px;
    text-align: center;
    left: 0px;
  }

  .form-wrapper {
    padding: 20px;
    align-items: center;
  }

  .register-form {
  align-items: stretch;
}

  .input {
    font-size: 16px;
    padding: 10px 16px;
  }

  .full-width {
    width: 100%;
  }

  .row {
    flex-direction: column;
    gap: 0px;
    margin-bottom: 0px;
  }
  .buttons {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
.password-wrapper {
    width: 100%;
  }
  .btn {
    width: 100%;
    font-size: 18px;
  }

  .terms {
    font-size: 13px;
    gap: 6px;
    left: 0px;
  }

  .left-panel {
    padding: 40px 20px;
  }

  .title {
    font-size: 36px;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .laptop-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
  }

  .welcome {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .welcome-subtext {
    font-size: 16px;
    max-width: 90%;
  }


.half-width {
    width: 100%;
    max-width: none; /* ❗ переопределяем max-width, чтобы реально было 100% */
  }

}

@media (max-width: 444px) {
  .left-panel {
  display: none;
}
.form-title {
    font-size: 35px;
    text-align: center;
    left: 0px;
  }

  .form-subtext {
    font-size: 16px;
    align-items: center;
    text-align: center;
    left: 0px;
  }

  .form-info {
    font-size: 14px;
    text-align: center;
    left: 0px;
  }
}
@media (max-width: 356px) {
.left-panel {
  display: none;
}
.form-title {
    font-size: 32px;
    text-align: center;
    left: 0px;
  }

  .form-subtext {
    font-size: 16px;
    align-items: center;
    text-align: center;
    left: 0px;
  }

  .form-info {
    font-size: 14px;
    text-align: center;
    left: 0px;
  }
}
.email-error {
  text-item: left;
  align-items: flex-start;
  display:none; color:#7C7C7C; font-size:12px; margin-top:-15px; margin-bottom:15px; font-family:'Poppins', sans-serif;
}
.username-error {
  display: none;
  font-size: 12px;
  color: #7C7C7C;
  margin: -15px 0 15px 0;
  text-align: left;
}
/* === Базовые стили для заголовков (уже есть в твоём CSS) === */
.title {
  font-size: 64px;
  font-weight: 600;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 40px;
}

.welcome {
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 10px;
}

.welcome-subtext {
  font-size: 24px;
  font-weight: 300;
  max-width: 500px;
}

/* === Плавное масштабирование для больших экранов === */
@media (max-width: 1920px) and (min-width: 1301px) {
  h1.title {
    font-size: calc(64px - (64 - 44) * ((1920px - 100vw) / (1920 - 1300)));
  }
  p.subtitle {
    font-size: calc(13px - (13 - 10) * ((1920px - 100vw) / (1920 - 1300)));
  }
  h2.welcome {
    font-size: calc(64px - (64 - 44) * ((1920px - 100vw) / (1920 - 1300)));
  }
  p.welcome-subtext {
    font-size: calc(24px - (24 - 18) * ((1920px - 100vw) / (1920 - 1300)));
  }
}

/* === Фиксированный размер для средних экранов 769px–1300px === */
@media (max-width: 1300px) and (min-width: 769px) {
  h1.title {
    font-size: 44px;
  }
  p.subtitle {
    font-size: 10px;
  }
  h2.welcome {
    font-size: 44px;
  }
  p.welcome-subtext {
    font-size: 18px;
  }
}

/* === Скрыть текст при небольшой высоте экрана <= 885px === */
@media (max-height: 885px) {
  p.welcome-subtext,
  p.subtitle {
    display: none !important;
  }
}
/* Стили для ссылки reset в модалке */
.styled-reset-link {
  color: #3b82f6;            /* тот же синий, что и кнопка Confirm */
  text-decoration: none;
  font-weight: 500;
}
.styled-reset-link:hover {
  text-decoration: underline;
}
/* Текстовые строки */
.dup-line {
  margin: 4px 0;
}
.main-text {
  font-weight: 500;       /* было 600, делаем чуть тоньше */
  color: #555;            /* чуть светлее, но всё ещё тёмный */
  font-size: 16px;
}
.hint-text {
  font-weight: 400;       /* было 300, делаем чуть толще */
  color: #666;            /* было #888, делаем темнее */
  font-size: 14px;
  margin-top: 12px;
}

/* Блок кнопок */
.dup-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* Размеры кнопок */
.small-btn {
  font-weight: 500; 
  padding: 4px 10px;      /* уменьшаем внутренние отступы */
  font-size: 16px;        /* меньше размер шрифта */
}
.large-btn {
  padding: 1px 16px;
  font-size: 15px;
}
.field-label {
  display: block;
  margin-bottom: 4px;
  color: #555;
  font-size: 14px;
}
.input-wrapper {
  margin-bottom: 0px;
}
.field-error {
  color: red;
  font-size: 12px;
  display: none;
  margin-top: 4px;
}
.reset-code-inputs input {
  width: 40px;
  margin-right: 8px;
  text-align: center;
}
.b1b {
  margin-right: 0px;
}
.modal-window .input.full-width {
  box-sizing: border-box;
  width: 100%;
}