/* Модалка входа на тёмном лендинге акции. */
#office-auth-form {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  font-family: Inter, Arial, sans-serif;
  color: #fafafa;
}

#office-auth-form.is-open,
#office-auth-form.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#office-auth-form .fade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

#office-auth-form .content {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  padding: 28px 24px 24px;
  background: #3a3a3a;
  border: 1px solid rgba(250, 250, 250, 0.12);
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

#office-auth-form .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(250, 250, 250, 0.08);
}

#office-auth-form .close::before,
#office-auth-form .close::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 10px;
  width: 16px;
  height: 2px;
  background: #fafafa;
}

#office-auth-form .close::before {
  transform: rotate(45deg);
}

#office-auth-form .close::after {
  transform: rotate(-45deg);
}

#office-auth-form .auth-nav {
  display: flex;
  gap: 4px;
  margin: 0 40px 20px 0;
  padding: 4px;
  background: rgba(250, 250, 250, 0.06);
  border-radius: 999px;
}

#office-auth-form .auth-nav .to-login,
#office-auth-form .auth-nav .to-reg {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #d0d0d0;
  cursor: pointer;
}

#office-auth-form .auth-nav .active {
  background: #fafafa;
  color: #1f1f1f;
}

#office-auth-form .forgot-h {
  margin: 8px 40px 8px 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
}

#office-auth-form .forgot-sub {
  margin-bottom: 16px;
  color: #a8a8a8;
  font-size: 14px;
}

#office-auth-form .form-group {
  margin-bottom: 14px;
}

#office-auth-form label {
  display: block;
  margin-bottom: 6px;
  color: #d0d0d0;
  font-size: 13px;
}

#office-auth-form input[type="text"],
#office-auth-form input[type="email"],
#office-auth-form input[type="password"],
#office-auth-form input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(250, 250, 250, 0.16);
  border-radius: 12px;
  background: #2c2c2c;
  color: #fafafa;
  font: inherit;
  font-size: 16px;
}

#office-auth-form input::placeholder {
  color: #8d8d8d;
}

#office-auth-form input:focus {
  outline: none;
  border-color: #d4ff46;
}

#office-auth-form .form-group:has(#office-login-form-password),
#office-auth-form .form-group:has(#office-register-form-password) {
  position: relative;
}

#office-auth-form .show-pass {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23d0d0d0' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

#office-auth-form .show-pass.active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23d4ff46' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18M10.6 10.6A2.5 2.5 0 0 0 12 14.5 2.5 2.5 0 0 0 14.4 13M9.9 5.2A10.8 10.8 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-3.2 4.2M6.1 6.1C3.5 7.8 2 12 2 12a18.4 18.4 0 0 0 6.2 6.2'/%3E%3C/svg%3E");
}

#office-auth-form .form-group.btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 0;
}

#office-auth-form .modal-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #d4ff46;
  color: #1f1f1f;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-align: center;
}

#office-auth-form .modal-btn:hover {
  filter: brightness(1.05);
}

#office-auth-form .forgot_pass,
#office-auth-form .auth-back {
  color: #d0d0d0;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

#office-auth-form .forgot_pass:hover,
#office-auth-form .auth-back:hover,
#office-auth-form .policy a:hover {
  color: #ff6b42;
}

#office-auth-form .policy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

#office-auth-form .policy input {
  margin-top: 3px;
  accent-color: #d4ff46;
}

#office-auth-form .policy label {
  margin: 0;
  color: #d0d0d0;
  font-size: 13px;
  line-height: 1.4;
}

#office-auth-form .policy a {
  color: #fafafa;
}

#office-auth-form .help-block {
  min-height: 0;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}

#office-auth-form .help-block.error,
#office-auth-form .error {
  color: #ff8a6a;
}

#office-auth-form .help-block.info,
#office-auth-form .success-msg {
  color: #d4ff46;
}

#office-auth-form .office-auth-register-wrapper,
#office-auth-form .forgot-h,
#office-auth-form .forgot-sub,
#office-auth-form .btn-forgot,
#office-auth-form .auth-back {
  display: none;
}

#office-auth-form.is-reg .office-auth-login-wrapper {
  display: none;
}

#office-auth-form.is-reg .office-auth-register-wrapper {
  display: block;
}

#office-auth-form .content.forgot-pass-mode .auth-nav,
#office-auth-form .content.forgot-pass-mode .btn-login,
#office-auth-form .content.forgot-pass-mode .forgot_pass,
#office-auth-form .content.forgot-pass-mode .form-group:has(#office-login-form-password),
#office-auth-form .content.forgot-pass-mode label[for="office-auth-login-email"] {
  display: none;
}

#office-auth-form .content.forgot-pass-mode .btn-forgot,
#office-auth-form .content.forgot-pass-mode .forgot-h,
#office-auth-form .content.forgot-pass-mode .forgot-sub,
#office-auth-form .content.forgot-pass-mode .auth-back {
  display: block;
}

#office-auth-form .content.forgot-pass-mode .auth-back {
  margin-top: 16px;
}
