/* Вход-основа. */
.site-form {
  font-family: 'Circe Bold', sans-serif;
  display: grid;
  grid-template-rows: 15% 85%;
  width: 500px;
  height: max-content !important;
  row-gap: 0.5rem;
  justify-self: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-radius: 25px;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  padding-bottom: 2.5rem;
  padding-top: 2.5rem;
	align-content: space-around;
  background-color: var(--main-latte);
}

.title {
  display: flex;
  font-size: 1.8em;
  color: var(--main-brown);
  align-items: end;
  justify-content: center;
  text-align: center;
}

.site-form .buttons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

form.main {
  display: grid;
  gap: 0.3rem;
  grid-template-rows: auto;
  justify-items: center;
  align-items: center;
  margin-top: 1rem;
  align-content: center;
}

form.main p {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 0;
  position: relative;
}

form.main label.input-label {
  opacity: 0;
  font-family: 'Circe Light', sans-serif;
  font-weight: bold;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  position: absolute;
  text-wrap: nowrap;
  color: var(--main-brown);
  justify-content: flex-start;
  align-items: center;
  z-index: 3;
  top: 0.5em;
  left: 0;
  padding-left: 2em;
  width: 220px;
  height: 25px;
  font-size: 0.75em;
}

form.main label.input-label.visible {
  opacity: 0.87;
  transform: translateY(0);
  pointer-events: auto;
}

form.main label.checkbox-label {
  display: flex;
  align-items: center;
  color: var(--main-brown);
  font-size: 0.95em;
  position: static;
  opacity: 1;
  transform: none;
  padding-left: 0;
  width: auto;
  height: auto;
  pointer-events: auto;
  background: none;
  border: none;
}

form.main label.radio-label {
  display: flex;
  align-items: center;
  color: var(--main-brown);
  font-size: 0.95em;
  position: static;
  opacity: 1;
  transform: none;
  padding-left: 0;
  width: auto;
  height: auto;
  pointer-events: auto;
  background: none;
  border: none;
}

form.main input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.1em;
  height: 1.1em;
  border-color: var(--main-brown);
  border-width: 1px;
  border-radius: 0.4em;
  margin-right: 0.5em;
  outline: none;
  cursor: pointer;
  position: relative;
  background-color: var(--main-latte);
}

form.main input[type="checkbox"]:checked {
  background-color: var(--main-brown);
}

form.main input[type="checkbox"]:checked::before {
  content: '✔';
  color: white;
  font-size: 0.9em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

form.main input {
  width: 450px;
  height: 55px;
  font-size: 0.95em;
  box-sizing: border-box;
  border: 1px solid var(--main-brown);
  border-radius: 17.5px;
  text-align: left;
  padding-left: 1.5em;
  background-color: var(--main-latte);
  padding-top: 0;
  transition: padding-top 0.3s;
}

form.main input.type-text {
  padding-top: 1.05em;
}

form.main input::placeholder {
  font-family: 'Circe Light', sans-serif;
  font-weight: bold;
  color: var(--main-brown);
  opacity: 0.9;
  font-size: 0.9em;
}

form.main input:focus-visible {
  outline: var(--main-brown);
}

form.main input:-webkit-autofill,
form.main input:-webkit-autofill:hover,
form.main input:-webkit-autofill:focus,
form.main input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}

/* Оcнова кнопки. */
.form-button-style {
	font-family: 'Circe Bold', sans-serif;
  width: 8.5em;
	height: 1.8em;
  font-size: 1.1em;
  border: 0.1rem solid var(--main-brown);
  border-radius: 2em;
  background-color: var(--main-latte);
  color:  var(--main-brown);
}

form a.forgot-pass {
  color: var(--main-dark-grey);
  width: 8em;
  height: 1.4em;
	font-size: 0.9em;
	text-align: center;
	justify-self: center;
	padding-bottom: 0.7em;
}

form.main .errorlist {
	font-family: 'Circe Light', sans-serif;
	font-size: 0.8em;
	margin-top: -0.7rem;
  margin-bottom: 1rem;
  margin-right: 1.5rem;
  margin-left: -0.5rem;
	color: red;
  width: 80%;
  text-align: justify;
}


/* Выход. */
.logout {
  grid-template-rows: 50% 25% 25%;
  align-items: center;
  padding-top: 3.5rem;
}

.logout .title {
  font-size: 2em;
}

img.sad-fox {
  width: 20em;
  height: 10em;
  justify-self: center;
  align-self: center;
}

a.form-button-style {
  display: inline-flex;
  text-decoration: none;
  justify-self: center;
  align-items: center;
  justify-content: center;
}

/* Стили страницы ошибок сильно похожи на стили выхода,
*  поэтому они размещены здесь.
*/
.logout .http-error-title {
  align-items: center;
  flex-direction: column;
}

.logout .http-error-title h2 {
  margin: 0;
}

.logout .http-error-buttons {
  grid-template-columns: 1fr;
}


/* Регистрация. */
.registration {
  align-self: center;
  align-items: center;
  grid-template-rows: 10% 90%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.registration-form {
  padding-bottom: 2em;
  margin-top: 2rem !important;
}

.registration .buttons {
  display: flex;
  align-self: center;
  margin-top: 1rem;
}

.registration .form-button-style {
  width: 13em;
}

.registration .confirm-email {
  padding: 0;
  margin: 0;
  color: var(--main-dark-grey);
  text-decoration: underline;
  z-index: 2;
  cursor: pointer;
}

#form-message {
  display: flex;
  flex-direction: column;
  font-family: 'Circe Bold', sans-serif;
  font-size: 0.9em;
  text-align: center;
  color: var(--main-dark-grey);
  height: 3em;
  align-items: center;
  cursor: default;
}

/* Востановление пароля по почте. */
.reset {
  grid-template-rows: 35% 65%;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.reset .title {
  font-size: 1.45em;
  text-align: center;
  align-items: center
}

form.reset {
  margin-top: 2rem;
	align-content: start;
}

.reset .form-button-style {
  width: 11em;
}


.reset-done {
  grid-template-rows: auto;
  height: 450px;
}

.reset-done .title {
  font-size: 1.3em;
  text-align: center;
}

.text-style {
  display: flex;
  flex-direction: column;
  font-size: 1.05em;
  color: var(--main-orange);
  justify-content: center;
  text-align: justify;
}

.button-reset-confirm {
  width: 11em;
}

.complete {
  grid-template-rows: auto;
}

/* Изменение пароля. */
.change_pass {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

/* Обновление профиля */
.update-profile {
  align-self: center;
  align-items: center;
  grid-template-rows: 15% 85%;
}

.update-profile .form-button-style {
  width: 7.5em;
}

/* Ввод промокода */
.site-form.promo-code {
  padding-top: 2.5em;
  padding-bottom: 2em;
}

/* Стили для FormSet */
.role-formset {
  grid-template-rows: 100%;
  width: 550px;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

form.formset input {
  padding-top: 2%;
}

form.formset .errorlist {
  display: flex;
  justify-content: center;
  font-size: 0.9em;
  width: 95%;
}

form.formset .nonform {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.9em;
  width: 95%;
}

form.formset label {
  display: flex;
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 20px;
  width: 180px;
  height: 25px;
  color: var(--main-brown);
  border: 1px solid var(--main-brown);
  border-radius: 17.5px;
  background-color: var(--main-latte);
  justify-content: flex-start;
  align-items: center;
  padding-left: 15px;
  font-weight: 600;
}

.role-formset .formset-info {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  color: var(--main-brown);
  margin-top: 1.3rem;
  margin-bottom: 1rem;
}

.formset-info a {
  color: var(--main-dark-grey);
}

.role-formset .form-button-style {
  width: 7.5em;
  height: 2em;
}

.email-table {
  width: 80%;
  border-collapse: collapse;
  margin-top: 10px;
  align-self: center;
  justify-self: center;
}

.email-table th, .email-table td {
  padding: 8px;
  text-align: left;
  color: var(--main-orange);
}

h3.formset {
  display: flex;
  font-size: 1.22em;
  color: var(--main-brown);
  text-align: center;
  justify-content: center;
  font-family: 'Circe Bold', sans-serif;
  margin: 0;
  margin-bottom: 3rem;
}

a.all-download {
  justify-self: left;
  font-size: 0.9em;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  background-color: var(--main-brown);
  color: var(--background-color);
  border: 0.2rem solid var(--main-brown);
}

#loading-form {
  display: none;
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.loading-form-fox {
  display: flex;
  height: 11rem;
  justify-self: center;
  margin-bottom: 1.5rem;
  margin-left: 2rem;
}

.site-form.feedback {
  height: 450px;
  grid-template-rows: auto;
  row-gap: 0;
}

.site-form.feedback .title {
  align-items: center;
  font-size: 1.5em;
}

.site-form.feedback form.main {
  margin-top: 0;
  gap: 0.6rem;
}

.site-form.feedback form.main textarea {
  width: 450px;
  height: 150px;
  font-size: 0.95em;
  box-sizing: border-box;
  border: 1px solid var(--main-brown);
  border-radius: 17.5px;
  text-align: left;
  padding: 1em;
  background-color: var(--main-latte);
  resize: none;
  overflow-y: auto;
  font-family: 'Circe Bold', sans-serif;
  -webkit-mask: radial-gradient(circle, #000 100%, transparent 0%);
  mask: radial-gradient(circle, #000 100%, transparent 0%);
}

.site-form.feedback form.main textarea::-webkit-scrollbar {
  width: 5px;
}

.site-form.feedback form.main textarea::-webkit-scrollbar-thumb {
  background-color: var(--main-brown);
  border-radius: 4px;
}

.site-form.feedback form.main textarea::-webkit-scrollbar-track {
  background-color: transparent;
  margin: 3px;
  margin-bottom: 5px;
  margin-top: 5px;
  border-radius: 4px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  margin-top: -0.5em;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: var(--background-color);
}

.star-rating label:hover,
.star-rating input:checked ~ label {
  color: var(--main-brown);
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--main-brown);
}

.site-form.unsubscribe-mailing {
  grid-template-rows: 100%;
}

.site-form.unsubscribe-mailing .title {
  font-size: 1.3em;
}
