:root {
  --filters-z-index: 10;
}

.auth-section {
  margin-top: 40px;
  margin-bottom: 50px;
}
@media (min-width: 992px) {
  .auth-section {
    margin-top: 64px;
    margin-bottom: 100px;
  }
}

.auth-block {
  display: flex;
  flex-direction: column-reverse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 4px 4px 10px 3px rgba(0, 0, 0, 0.04);
}
@media (min-width: 992px) {
  .auth-block {
    flex-direction: row;
    min-height: 688px;
  }
}
.auth-block .auth-image {
  min-height: 240px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #faeadb;
}
@media (min-width: 992px) {
  .auth-block .auth-image {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: auto;
  }
}
.auth-block .auth-panel {
  flex-grow: 1;
  background: #ffffff;
  padding: 40px calc(24px / 2);
}
@media (min-width: 992px) {
  .auth-block .auth-panel {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 64px 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.auth-block--narrow .auth-inner {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.auth-block--login .auth-header {
  text-align: center;
}

.auth-block--register .auth-header {
  text-align: left;
}

.auth-header {
  margin-bottom: 32px;
}
.auth-header .auth-title {
  color: #1C1C1C;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}
@media (min-width: 992px) {
  .auth-header .auth-title {
    font-size: 40px;
  }
}
.auth-header .auth-subtitle {
  color: #303030;
  font-size: 16px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.auth-messages {
  margin-bottom: 24px;
}
.auth-messages .auth-message {
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 12px 16px;
}
.auth-messages .auth-message:last-child {
  margin-bottom: 0;
}
.auth-messages .auth-message.is-error {
  background-color: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b3261e;
}
.auth-messages .auth-message.is-success, .auth-messages .auth-message.is-notice {
  background-color: #eef7ef;
  border: 1px solid #bcdcc0;
  color: #2e7d32;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 24px;
}
@media (max-width: 575px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}
.auth-grid .auth-field {
  margin-bottom: 0;
}

.auth-field--full {
  grid-column: 1/-1;
}

.auth-field {
  position: relative;
  margin-bottom: 24px;
}
.auth-field input,
.auth-field select {
  width: 100%;
  height: 48px;
  background-color: #fff;
  border: 1px solid #959595;
  border-radius: 4px;
  color: #1C1C1C;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease-in-out;
}
.auth-field input {
  padding: 20px 12px 6px;
}
.auth-field input::placeholder {
  color: transparent;
}
.auth-field input:focus {
  border-color: #F3B694;
}
.auth-field > label:not(.auth-checkbox) {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #545454;
  font-size: 16px;
  line-height: 1.5;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
  top: 6px;
  transform: none;
  font-size: 12px;
}

.auth-field--select select {
  padding: 0 42px 0 12px;
  color: #1C1C1C;
  background-image: url(../../resources/images/svg/icon-chevron-down-filter.svg);
  background-position: calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.auth-field--select select:focus {
  border-color: #F3B694;
}
.auth-field--select select.is-placeholder {
  color: #545454;
}

.auth-field--phone .iti {
  display: block;
  width: 100%;
}
.auth-field--phone input {
  padding-top: 12px;
  padding-bottom: 12px;
}
.auth-field--phone input::placeholder {
  color: #545454;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.auth-checkbox input[type=checkbox] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #E26620;
  cursor: pointer;
}
.auth-checkbox .auth-checkbox-label {
  color: #545454;
  font-size: 14px;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.auth-actions.auth-actions--stacked {
  flex-direction: column;
}
.auth-actions .btn {
  width: 100%;
  justify-content: center;
}

.auth-block--register .auth-actions {
  margin-top: 24px;
}
@media (min-width: 576px) {
  .auth-block--register .auth-actions {
    flex-direction: row;
  }
  .auth-block--register .auth-actions .btn {
    width: auto;
  }
}

.auth-links {
  margin-top: 24px;
  color: #1C1C1C;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.auth-links .auth-link {
  color: #E26620;
  text-decoration: none;
}
.auth-links .auth-link:hover, .auth-links .auth-link:focus {
  text-decoration: underline;
}
