/* === Глобально === */
[hidden] {
  display: none !important;
}

input {
  outline: none;
}

.modal .element_click {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: pointer;
}

/* ЛОГИН */

/* === РЕГИСТРАЦИЯ =============================================== */

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.login-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.login-modal {
  border: 1px solid var(--light-orange);
  border-radius: 8px;
  padding: 40px;
  background: var(--violet);
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.login-modal_error .login-input {
  border-color: var(--red);
}

.login-modal_error .login-label-inner,
.login-modal_error .login-password-toggle {
  color: var(--red);
}

.login-modal_error .login-title {
  color: var(--red);
}


.login-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--light-orange);
}

.login-error {
  margin-bottom: 20px;
  text-align: center;
  color: var(--light-orange);
  width: 380px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  position: relative;
}

.login-label-inner {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--transparent-orange);
  pointer-events: none;
}

.login-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 22px 8.5px 12px 8.5px;
  background: transparent;
  color: var(--white);
}

.login-field-password {
  position: relative;
}

.login-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 0;
  font-size: 24px;
  margin: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: color 0.2s ease;
}

.login-password-toggle:hover {
  color: var(--transparent-orange);
}

.login-password-toggle_active {
  color: var(--light-orange);
}

.login-forgot {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  color: var(--white);
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  border: 3px solid var(--light-orange);
  border-radius: 8px;
  padding: 6px 40px;
  box-shadow: 0 0 8px 0 var(--light-orange);
  text-shadow: 0 0 4px 0 var(--light-orange);
  background: var(--violet);
  color: var(--light-orange);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  background-color: rgba(252, 158, 79, 0.1);
}

/* === РЕГИСТРАЦИЯ =============================================== */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.auth-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  border: 1px solid var(--light-orange);
  border-radius: 8px;
  padding: 40px;
  background: var(--violet);
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.register-modal {
  gap: 40px;
  color: var(--light-orange);
}

.register-modal_success {
  max-width: 460px;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.auth-title {
  text-align: center;
}

.register-error {
  margin-bottom: 20px;
  text-align: center;
  color: var(--red);
  line-height: 1.4;
}

.register-modal_error .auth-title {
  color: var(--red);
}

.register-modal_error .auth-input {
  border-color: var(--red);
}

.register-modal_error .auth-label-inner,
.register-modal_error .auth-password-toggle {
  color: var(--red);
}

.register-success_text {
  margin-bottom: 24px;
  color: var(--white);
  text-align: center;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.auth-field {
  width: 100%;
}

.auth-label {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 6px 8.5px;
  background: var(--violet);
}

.auth-label-inner {
  display: block;
  margin-bottom: 4px;
  color: var(--transparent-orange);
}

.auth-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--white);
}

.auth-field-password {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  right: 16px;
  bottom: 14px;
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 24px;
}

.auth-password-toggle:hover {
  color: var(--transparent-orange);
}

.auth-password-toggle_active {
  color: var(--light-orange);
}

/* Чекбокс согласия в регистрации в стиле контент-чекбоксов */

.register-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

/* сам input прячем */
.register-consent_input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* квадратная рамка с подсветкой — аналог content_block_video-checkbox-box */
.register-consent_box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--light-orange);
  border-radius: 4px;
  background: var(--violet);
  box-shadow: 0 0 6px 0 var(--light-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.register-consent_mark {
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--light-orange);
  border-bottom: 2px solid var(--light-orange);
  transform: rotate(-45deg) translateY(-1px) translateX(1px);
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.register-consent_input:checked+.register-consent_box .register-consent_mark {
  opacity: 1;
}

.register-consent:hover .register-consent_box {
  box-shadow: 0 0 9px 0 var(--light-orange);
}

/* текст рядом */
.register-consent_text {
  color: var(--white);
}

/* при ошибке регистрации прячем чекбокс согласия и текст рядом */
.register-modal_error .register-consent {
  display: none;
}



.auth-actions {
  display: flex;
  justify-content: center;
}

.auth-btn.auth-btn-primary {
  width: 100%;
  border: 3px solid var(--light-orange);
  border-radius: 8px;
  padding: 6px 78.5px;
  box-shadow: 0 0 8px 0 var(--light-orange);
  text-shadow: 0 0 4px 0 var(--light-orange);
  background: var(--violet);
  color: var(--light-orange);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.auth-btn.auth-btn-primary:hover {
  box-shadow: 0 0 12px 0 var(--light-orange);
  background-color: rgba(252, 158, 79, 0.08);
}

.auth-btn.auth-btn-primary:active {
  transform: translateY(1px);
}

/* ========= МОДАЛКА "ПОМОЩЬ" (ЗАБЫЛИ ПАРОЛЬ) ========= */

.forgot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.forgot-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.forgot-modal {
  border: 1px solid var(--light-orange);
  border-radius: 8px;
  padding: 40px;
  background: var(--violet);
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);

  display: flex;
  flex-direction: column;
  gap: 40px;
}

.forgot-title {
  text-align: center;
  color: var(--light-orange);
}

.forgot-description {
  text-align: center;
  color: var(--white);
}

.forgot-form {
  display: flex;
  flex-direction: column;
  gap: 32px; 
}

.forgot-fields {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.forgot-field {
  position: relative;
}

.forgot-label-inner {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--transparent-orange);
  pointer-events: none;
}

.forgot-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 22px 8.5px 12px 8.5px; 
  background: transparent;
  color: var(--white);
}

.forgot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forgot-link {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--white);
  text-align: left;
}

.forgot-link:hover {
  color: var(--transparent-orange);
}

.forgot-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forgot-modal_error .forgot-description {
  color: var(--red);
}

.forgot-modal_success .forgot-description {
  color: var(--white);
}

.modal-close {
  display: none;
}

/* Окно видео */
.modal_video {
  background: rgba(4, 0, 20, 0.75);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_video .player {
  width: 90%;
  height: 90%;
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
}

.modal_video .player iframe {
  width: 100%;
  height: 101%;
}