@font-face {
 font-family: "Lora";
 src: url("../fonts/Lora/Lora-Regular.5fbbc2dd9545.ttf");
 font-style: normal;
 font-weight: normal;
}
.auth-page-wrapper {
 position: relative;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 overflow: hidden;
}
.auth-bg-image {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: -1;
}

.auth-container {
 width: 100%;
 max-width: 600px;
 margin: 0 auto;
 position: relative;
 z-index: 1;
}

.auth-main-title {
 font-size: 28px;
 font-weight: 700;
 color: #3a1c4f;
 line-height: 1.1;
 margin-bottom: 10px;
 letter-spacing: 1px;
 text-transform: uppercase;
}

.auth-divider {
 display: flex;
 align-items: center;
 justify-content: center;
 color: #3a1c4f;
 font-size: 20px;
 margin-bottom: 5px;
}
.auth-divider span {
 display: inline-block;
 height: 1px;
 width: 60px;
 background: #3a1c4f;
 margin: 0 10px;
}

.auth-subtitle {
 font-size: 16px;
 color: #3a1c4f;
 font-style: italic;
}
.auth-card {
 background: #f9f4eb;
 border: 2px solid #9b9082;
 border-radius: 12px;
 padding: 6px;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 max-width: 700px;
 margin: 0 auto;
}

.auth-card-inner {
 border: 1px solid #9b9082;
 border-radius: 8px;
 padding: 40px 30px;
}

.auth-title {
 font-family: "Lora", serif;
 font-size: 28px;
 color: #3a1c4f;
 text-align: center;
 margin-bottom: 10px;
}

.auth-desc {
 font-size: 14px;
 color: #5a4b3c;
 text-align: center;
 margin-bottom: 30px;
 line-height: 1.4;
}

.auth-group {
 margin-bottom: 20px;
}

.auth-group label {
 display: block;
 font-size: 14px;
 font-weight: 600;
 color: #3a1c4f;
 margin-bottom: 6px;
 position: static;
 transform: none;
}

.auth-input-wrap {
 position: relative;
 display: flex;
 align-items: center;
 background: transparent;
 border: 1px solid #c2b29c;
 border-radius: 6px;
 overflow: hidden;
}

.auth-icon {
 width: 20px;
 height: 20px;
 margin: 0 12px;
 fill: #5a4b3c;
 flex-shrink: 0;
}

.auth-input-wrap input {
 width: 100%;
 height: 42px;
 background: transparent !important;
 border: none !important;
 border-radius: 0 !important;
 padding: 0 10px 0 0 !important;
 font-size: 15px;
 color: #3a1c4f;
 outline: none;
}

.auth-input-wrap input::placeholder {
 color: #998f80;
 font-size: 14px;
}

.auth-error {
 color: #a82c2c;
 font-size: 12px;
 margin-top: 4px;
 display: block;
}

.login-errors-container {
 background: #fdf3f3;
 border: 1px solid #e3b3b3;
 border-radius: 6px;
 padding: 12px;
 margin-bottom: 20px;
}

.auth-checkbox {
 display: flex;
 align-items: flex-start;
 margin-bottom: 20px;
 gap: 10px;
}

.auth-checkbox input {
 margin-top: 3px;
 accent-color: #5e2d79;
}

.auth-checkbox label {
 font-size: 13px;
 color: #5a4b3c;
 line-height: 1.3;
 position: static;
 transform: none;
}

.button.auth-button {
 display: block;
 width: 100%;
 height: 50px;
 background: #603a6f;
 color: #fff;
 font-size: 16px;
 font-weight: 500;
 border: none;
 border-radius: 6px;
 cursor: pointer;
 transition: background 0.2s;
 margin-top: 10px;
}

.auth-button:hover {
 background: #4a1f63;
}

.auth-link-bottom {
 text-align: center;
 margin-top: 20px;
 font-size: 14px;
 color: #5a4b3c;
}

.auth-link-bottom a {
 color: #3a1c4f;
 text-decoration: underline;
 font-weight: 600;
}

.password-hint {
 display: none;
 background: #fdfaf5;
 border: 1px solid #dcd2c0;
 padding: 10px 15px;
 border-radius: 6px;
 margin-bottom: 20px;
}
.password-hint h3 {
 font-size: 13px;
 margin-bottom: 5px;
 color: #3a1c4f;
}
.password-hint p {
 font-size: 12px;
 margin: 3px 0;
}
.password-hint .valid {
 color: #2e7d32;
}
.password-hint .invalid {
 color: #c62828;
}

.signin,
.signup {
 display: none;
}
body {
 font-family: Lora, sans-serif;
 display: flex;
 flex-direction: column;
 min-height: 100vh;
}
label {
 margin: 0;
 padding: 0;
 position: absolute;
 left: 0;
 top: -15px;
 transform: translateY(-50%);
 color: rgb(0, 0, 0);
 font-size: 16px;
 font-weight: 400;
 line-height: 19px;
 transition: 0.1s linear;
 margin-bottom: 10px;
}

.form-input-wrap,
.form-checkbox {
 position: relative;
 width: 100%;
}
.form-checkbox {
 display: flex;
 align-items: center;
}
.form-checkbox label {
 margin: 0;
}
.form-checkbox input[type="checkbox"] {
 width: 20px;
 height: 20px;
 margin-right: 10px;
}
.form-checkbox input[type="checkbox"]:checked {
 background-color: #afb3ff !important;
}
.form-input-wrap input,
.form-input-wrap select {
 position: relative;
 width: 100%;
 height: 34px;
 background: #fff;
 border: 1px solid #000;
 border-radius: 10px;
 font-size: 14px;
 line-height: normal;
 padding: 0 20px;
}
.form-input-wrap select {
 font-size: 15px;
 line-height: normal;
}
.form-input-wrap textarea {
 position: relative;
 width: 100%;
 height: 64px;
 background: #fff;
 border: 1px solid rgb(101, 110, 211);
 border-radius: 25px;
 font-size: 20px;
 line-height: 25px;
 resize: none;
 padding: 0 20px;
}
.form-input-wrap-error {
 margin-bottom: 40px;
}
#message {
 display: none;
 color: #000;
 position: relative;
 margin-top: 10px;
 margin-bottom: 40px;
}
#message h3 {
 color: rgb(26, 26, 26);
 font-size: 15px;
 font-weight: 700;
 line-height: 18px;
}
#message p {
 padding: 10px 35px 0;
 margin: 0;
 font-size: 14px;
}

/* Добавить зеленый цвет текста и галочка, когда требования верны */
.valid {
 color: green;
}

.valid:before {
 position: relative;
 left: -25px;
 content: "✔";
}

/* Добавить красный цвет текста и собой "x" и значок, когда требования не правы */
.invalid {
 color: red;
}

.invalid:before {
 position: relative;
 left: -25px;
 content: "✖";
}
.errorWindow {
 display: none;
}
.errorWindow.active {
 display: flex;
 color: red;
 font-size: 11px;
}
.bg-color {
 flex-grow: 1;
 background: rgb(235, 239, 255);
}
.bg-gradient {
 background: linear-gradient(to right, #ebefff 60%, #afb3ff 60% 40%);
}
.form-designer .bg-form {
 max-width: 500px;
 margin: 0 auto;
 padding: 140px 0 60px;
}
.bg-form {
 max-width: 370px;
 padding: 90px 0 60px;
}
.group-title {
 color: rgb(26, 26, 26);
 font-size: 16px;
 font-weight: 700;
 line-height: 19px;
 text-align: left;
 margin-bottom: 50px;
}
.login-errors-container {
 background-color: #ffebee;
 color: #c62828;
 padding: 12px;
 border-radius: 6px;
 margin-bottom: 40px;
 font-size: 14px;
 border: 1px solid #ffcdd2;
}
.button {
 width: 100%;
 height: 34px;
 padding: 8px;
 border-radius: 10px;
 background: rgb(101, 110, 211);
 color: rgb(255, 255, 255);
 font-size: 16px;
 font-weight: 500;
 line-height: 19px;
 border: none;
}
button:disabled,
button[disabled] {
 opacity: 0.8;
 color: rgb(255, 255, 255);
}
button:disabled:hover,
button[disabled]:hover {
 color: rgb(255, 255, 255);
}
.button:hover,
.button:focus {
 color: #afb3ff;
}
.signin {
 height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
}
.signin > img {
 margin-left: 70px;
}
.signup {
 height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 background-position-y: -70px;
}
.signup > img {
 margin-right: 60px;
}
.link-signin,
.link-signup {
 color: rgb(0, 0, 0);
 font-size: 16px;
 font-weight: 400;
 line-height: 19px;
 text-align: center;
 margin-top: 27px;
}
.link-signin a,
.link-signup a {
 color: rgb(0, 0, 0);
 font-weight: 700;
 font-size: 16px;
 line-height: 19px;
 text-decoration: none;
}
.link-media {
 text-align: center;
 margin-top: 27px;
}
@media (max-width: 991px) {
 .signin {
  flex-direction: column-reverse;
  justify-content: flex-end;
 }
 .signup {
  flex-direction: column;
  justify-content: flex-start;
  background: none;
  padding-bottom: 20px;
 }
 .signin > img {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 400px;
  margin-left: 0;
 }
 .signup > img {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 300px;
  margin-right: 0;
 }
 .bg-form {
  padding: 20px 0 20px;
 }
 .form-designer .bg-form {
  padding: 90px 0 60px;
 }
}
