.key-to-workshop {
  background: #ffffff;
}

.key-to-workshop__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 300px;
  overflow: visible;
}

.key-to-workshop__img {
  position: absolute;
  height: auto;
  display: block;
}

/* ===== ТЕКСТ ===== */

.key-to-workshop__title {
  position: absolute;
  top: 53px;
  left: 340px;
  width: 521px;
  margin: 0;

  text-align: center;
  color: #dc906c;
  font-size: 40px;
  line-height: 1.55;
  font-weight: 300;
  font-family: "TildaSans", Arial, sans-serif;

  z-index: 5;
}

.key-to-workshop__title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;

  color: #f9e09e;
  filter: blur(3px);

  z-index: -1;
  pointer-events: none;
}

.key-to-workshop__text {
  position: absolute;
  top: 159px;
  left: 197px;
  width: 806px;
  margin: 0;
  text-align: center;
  color: #815583;
  font-size: 25px;
  line-height: 1.55;
  font-weight: 300;
  font-family: "TildaSans", Arial, sans-serif;
}

.key-to-workshop__link {
  position: absolute;
  top: 250px;
  left: 197px;
  width: 806px;
  text-align: center;
  color: #5d85c6;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  font-family: "TildaSans", Arial, sans-serif;
  text-decoration: none;
}

/* ===== ДЕКОР ===== */

/* Flowers_06.png */
.key-to-workshop__img--flowers-06 {
  top: 76px;
  left: 20px;
  width: 117px;
  transform: rotate(32deg);
}

/* Stars_01.png */
.key-to-workshop__img--stars-01 {
  top: 1px;
  left: 298px;
  width: 82px;
  transform: rotate(28deg);
}

/* Key.png */
.key-to-workshop__img--key {
  top: -3px;
  left: 820px;
  width: 88px;
  transform: rotate(40deg);
}

/* Stars_02.png */
.key-to-workshop__img--stars-02 {
  top: 35px;
  left: 948px;
  width: 46px;
  transform: rotate(13deg);
}

/* Stars_03.png (маленькая слева) */
.key-to-workshop__img--stars-03a {
  top: 115px;
  left: 393px;
  width: 29px;
}

/* Stars_03.png (справа, повернутая) */
.key-to-workshop__img--stars-03b {
  top: 78px;
  left: 920px;
  width: 41px;
  transform: rotate(237deg);
}

/* Stars_03.png (сверху справа) */
.key-to-workshop__img--stars-03c {
  top: 42px;
  left: 807px;
  width: 29px;
}

/* Flowers_02.png */
.key-to-workshop__img--flowers-02 {
  top: 152px;
  left: 1112px;
  width: 105px;
  transform: rotate(313deg);
}

/* ===== 960 ===== */
@media (max-width: 1199px) {
  .key-to-workshop__inner {
    max-width: 960px;
    min-height: 300px;
  }

  .key-to-workshop__title {
    top: 68px;
    left: 43px;
    width: 879px;
  }

  .key-to-workshop__text {
    top: 155px;
    left: 77px;
  }

  .key-to-workshop__link {
    top: 255px;
    left: 77px;
  }

  .key-to-workshop__img--flowers-06 { top: 11px; left: -27px; }
  .key-to-workshop__img--stars-01   { top: 13px; left: 168px; }
  .key-to-workshop__img--key        { top: -10px; left: 748px; }
  .key-to-workshop__img--stars-02   { top: 42px; left: 883px; }
  .key-to-workshop__img--stars-03a  { top: 117px; left: 221px; }
  .key-to-workshop__img--stars-03b  { top: 95px; left: 855px; }
  .key-to-workshop__img--stars-03c  { top: 17px; left: 730px; }
  .key-to-workshop__img--flowers-02 { top: 158px; left: 920px; }
}

/* ===== 640 ===== */
@media (max-width: 959px) {
  .key-to-workshop__inner {
    max-width: 640px;
    min-height: 410px;
  }

  .key-to-workshop__title {
    top: 47px;
    left: 107px;
    width: 448px;
  }

  .key-to-workshop__text {
    top: 187px;
    left: 55px;
    width: 530px;
  }

  .key-to-workshop__link {
    top: 362px;
    left: 55px;
    width: 530px;
  }

  .key-to-workshop__img--flowers-06 { top: 48px; left: -70px; }
  .key-to-workshop__img--stars-01   { top: 5px; left: 61px; }
  .key-to-workshop__img--key        { top: 1px; left: 555px; }
  .key-to-workshop__img--stars-02   { top: 1px; left: 509px; }
  .key-to-workshop__img--stars-03a  { top: 121px; left: 141px; }
  .key-to-workshop__img--stars-03b  { top: 130px; left: 613px; }
  .key-to-workshop__img--stars-03c  { top: 16px; left: 555px; }
  .key-to-workshop__img--flowers-02 { top: 250px; left: 585px; }
}

/* ===== 480 ===== */
@media (max-width: 639px) {
  .key-to-workshop__inner {
    max-width: 480px;
    min-height: 400px;
  }

  .key-to-workshop__title {
    top: 20px;
    left: 21px;
    width: 438px;
  }

  .key-to-workshop__text {
    top: 163px;
    left: 36px;
    width: 409px;
  }

  .key-to-workshop__link {
    top: 342px;
    left: 36px;
    width: 409px;
  }

  .key-to-workshop__img--flowers-06 { top: 106px; left: -100px; }
  .key-to-workshop__img--stars-01   { top: -12px; left: -19px; }
  .key-to-workshop__img--key        {
    top: 53px;
    left: 354px;
    width: 74px;
    transform: rotate(76deg);
  }
  .key-to-workshop__img--stars-02   { top: 106px; left: 262px; }
  .key-to-workshop__img--stars-03a  { top: 87px; left: 63px; }
  .key-to-workshop__img--stars-03b  { top: 153px; left: 445px; }
  .key-to-workshop__img--stars-03c  { top: 82px; left: 325px; }
  .key-to-workshop__img--flowers-02 { top: 247px; left: 462px; }
}

/* ===== 320 ===== */
@media (max-width: 479px) {
  .key-to-workshop__inner {
    max-width: 320px;
    min-height: 610px;
  }

  .key-to-workshop__title {
    top: 37px;
    left: 20px;
    width: 291px;
    line-height: 1.15;
  }

  .key-to-workshop__text {
    top: 270px;
    left: 22px;
    width: 276px;
  }

  .key-to-workshop__link {
    top: 530px;
    left: 73px;
    width: 175px;
  }

  .key-to-workshop__img--flowers-06 { top: 272px; left: -88px; }
  .key-to-workshop__img--stars-01   { left: 0px; }
  .key-to-workshop__img--key        { top: 127px; left: 129px; }
  .key-to-workshop__img--stars-02   { top: 206px; left: 10px; }
  .key-to-workshop__img--stars-03a  { top: 18px; left: 281px; }
  .key-to-workshop__img--stars-03b  { top: 144px; left: 250px; }
  .key-to-workshop__img--stars-03c  { top: 217px; left: 47px; }
  .key-to-workshop__img--flowers-02 {
    top: 453px;
    left: 297px;
    transform: rotate(270deg);
  }
}

/* ========== Секция формы входа (из Login.HTML) ========== */

.login-form-section {
  background-color: #f4eee9;
  padding: 30px 20px 40px;
  box-sizing: border-box;
}

#login-form .form-element {
  font-family: 'TildaSans', sans-serif;
  font-weight: 300;
}

#login-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f4eee9;
  text-align: center;
}

#login-form label {
  color: #3d183e;
  font-size: 20px;
  display: block;
  text-align: left;
  margin: 8px 0;
}

#login-form input {
  width: 100%;
  padding: 20px 15px;
  margin-bottom: 10px;
  border: 1px solid #b783b9;
  border-radius: 20px;
  font-size: 16px;
  color: #815583;
  box-sizing: border-box;
}

#login-form input::placeholder {
  color: #815583;
  opacity: .5;
}

#login-form input:focus {
  outline: none;
}

#login-form button {
  max-width: 500px;
  width: 300px;
  margin: 30px auto 50px;
  display: block;
  padding: 15px;
  background-color: #815583;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}

#login-form button:hover:not(:disabled) {
  background-color: #7a527b;
}

#login-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#login-form button.loading::after {
  content: '...';
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 0;
  animation: login-dots 1.2s steps(4, end) infinite;
}

@keyframes login-dots {
  to { width: 1.2em; }
}

#login-form .error {
  color: #b83434;
  font-size: 16px;
  text-align: left;
  margin: 0 0 15px;
  display: none;
  transition: opacity .3s ease;
  opacity: 0;
}

#login-form .error.visible {
  display: block;
  opacity: 1;
}

#login-form #api-error {
  font-size: 24px;
  text-align: center;
}

#login-form .error a {
  color: #815583;
  text-decoration: underline;
}

#login-form .error a:hover {
  color: #7a527b;
}

#success-message {
  display: none;
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #b783b9;
  color: #fff;
  border-radius: 20px;
  text-align: center;
  transition: opacity .3s ease;
  opacity: 0;
}

#success-message.visible {
  display: block;
  opacity: 1;
}

#success-message h3 {
  font-family: 'TildaSans', sans-serif;
  font-weight: 200;
  font-size: 40px;
  color: #fff;
  margin: 0 0 20px;
}

#success-message p {
  font-family: 'TildaSans', sans-serif;
  font-weight: 300;
  font-size: 26px;
  color: #fff;
  margin: 0;
}

/* ===== Блоки-подсказки под формой (resend, must-reset) ===== */

.resend-verification,
.must-reset-password {
  max-width: 540px;
  margin: 0 auto 20px;
  padding: 20px 24px;
  border-radius: 16px;
  text-align: center;
  font-family: 'TildaSans', sans-serif;
  font-weight: 300;
  line-height: 1.55;
}

.resend-verification {
  background-color: #fdf3e7;
  border: 1px solid #e0c9a6;
  color: #7a5c3d;
}

.must-reset-password {
  background-color: #f0e8f3;
  border: 1px solid #c9a8cc;
  color: #5b3a5e;
}

.resend-verification p,
.must-reset-password p {
  margin: 0 0 12px;
  font-size: 17px;
}

.resend-verification p:last-child,
.must-reset-password p:last-child {
  margin-bottom: 0;
}

.must-reset-password a {
  color: #815583;
  text-decoration: underline;
  font-weight: 400;
}

.must-reset-password a:hover {
  color: #5b3a5e;
}

.resend-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  background-color: #815583;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.resend-btn:hover:not(:disabled) {
  background-color: #7a527b;
}

.resend-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.resend-status {
  margin: 8px 0 0;
  font-size: 15px;
  min-height: 1.4em;
}

.resend-status.success { color: #4a7a3d; }
.resend-status.error   { color: #b83434; }

.anchor-zero { display: block; height: 0; }

.registration-actions {
  background: #ffffff;
}

.registration-actions__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 560px;
  overflow: visible;
}

.registration-actions__img {
  position: absolute;
  height: auto;
  display: block;
}

/* Тексты */
.registration-actions__text {
  position: absolute;
  margin: 0;
  text-align: center;
  color: #815583;
  font-size: 25px;
  line-height: 1.55;
  font-weight: 300;
  font-family: "TildaSans", Arial, sans-serif;
  width: 840px;
  left: 180px;
}

.registration-actions__text--top { top: 95px; }
.registration-actions__text--bottom { top: 341px; }

/* Кнопки — канон как registration-form */
.registration-actions__btn {
  position: absolute;
  width: 300px;
  max-width: 500px;
  left: 456px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: white;
  background-color: #815583;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.registration-actions__btn:hover { background-color: #7a527b; }

.registration-actions__btn--register { top: 237px; }
.registration-actions__btn--resetpass { top: 404px; }

/* Декор: позиции 1200 */
.registration-actions__img--flowers-10 { top: 99px; left: -100px; width: 307px; }
.registration-actions__img--thread-02  { top: 36px; left: 320px;  width: 570px; }
.registration-actions__img--stars-01   { top: 409px; left: 755px; width: 74px; transform: rotate(180deg); }
.registration-actions__img--stars-03   { top: 381px; left: 385px; width: 44px; transform: rotate(338deg); }
.registration-actions__img--flowers-03 { top: 387px; left: 965px; width: 138px; }

/* 960 */
@media (max-width: 1199px) {
  .registration-actions__inner { max-width: 960px; min-height: 540px; }

  .registration-actions__text { left: 60px; }
  .registration-actions__text--top { top: 102px; }
  .registration-actions__text--bottom { top: 341px; }

  .registration-actions__btn--register { top: 234px; left: 336px; }
  .registration-actions__btn--resetpass { top: 402px; left: 341px; }

  .registration-actions__img--flowers-10 { top: 147px; left: -92px; width: 262px; }
  .registration-actions__img--thread-02  { top: 37px; left: 220px; }
  .registration-actions__img--stars-01   { top: 413px; left: 650px; }
  .registration-actions__img--stars-03   { top: 381px; left: 273px; }
  .registration-actions__img--flowers-03 { top: 367px; left: 803px; }
}

/* 640 */
@media (max-width: 959px) {
  .registration-actions__inner { max-width: 640px; min-height: 640px; }

  .registration-actions__text { width: 608px; left: 16px; }
  .registration-actions__text--top { top: 85px; }
  .registration-actions__text--bottom { top: 329px; }

  .registration-actions__btn--register { top: 221px; left: 176px; }
  .registration-actions__btn--resetpass { top: 383px; left: 170px; }

  .registration-actions__img--flowers-10 { top: 247px; left: -149px; }
  .registration-actions__img--thread-02  { top: 31px; left: 38px; }
  .registration-actions__img--stars-01   { top: 403px; left: 459px; }
  .registration-actions__img--stars-03   { top: 369px; left: 113px; }
  .registration-actions__img--flowers-03 { top: 467px; left: 250px; }
}

/* 480 */
@media (max-width: 639px) {
  .registration-actions__inner { max-width: 480px; min-height: 740px; }

  .registration-actions__text--top { top: 81px; left: 14px; width: 453px; }
  .registration-actions__text--bottom { top: 391px; left: 83px; width: 314px; }

  .registration-actions__btn--register { top: 248px; left: 96px; }
  .registration-actions__btn--resetpass { top: 485px; left: 96px; }

  .registration-actions__img--flowers-10 { top: 347px; left: -166px; }
  .registration-actions__img--thread-02  { top: 36px; left: -45px; }
  .registration-actions__img--stars-01   { top: 485px; left: 385px; }
  .registration-actions__img--stars-03   { top: 500px; left: 38px; }
  .registration-actions__img--flowers-03 { top: 567px; left: 247px; }
}

/* 320 */
@media (max-width: 479px) {
  .registration-actions__inner { max-width: 320px; min-height: 740px; }

  .registration-actions__text--top { left: 13px; width: 294px; }
  .registration-actions__text--bottom { top: 392px; left: 29px; width: 263px; }

  .registration-actions__btn--register { top: 288px; left: 16px; }
  .registration-actions__btn--resetpass { top: 488px; left: 27px; width: min(300px, calc(100vw - 24px)); }

  .registration-actions__img--flowers-10 { top: 347px; left: -222px; }
  .registration-actions__img--thread-02  { top: 36px; left: -45px; }
  .registration-actions__img--stars-01   { top: 495px; left: 285px; }
  .registration-actions__img--stars-03   { top: 440px; left: -4px; }
  .registration-actions__img--flowers-03 { top: 567px; left: 104px; }
}
