/* Page-specific styles: login.html */
:root {
  --r: #e9332b;
  --rd: #c8241e;
  --rs: #fff0ed;
  --g: #88be21;
  --gd: #66980f;
  --gs: #eff8df;
  --ink: #25211f;
  --mut: #6f6862;
  --line: #e8e1d9;
  --cream: #fffaf1;
  --shadow: 0 22px 60px #4b312323;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #fff;
  font:
    16px/1.5 Manrope,
    Arial,
    sans-serif;
}
button,
input {
  font: inherit;
}
.top {
  height: 34px;
  background: #302d2b;
  color: #fff;
  font-size: 13px;
}
.top .wrap {
  height: 100%;
  display: flex;
  align-items: center;
}
.top b {
  color: #f4d365;
}
.head {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.head-main {
  height: 82px;
  display: flex;
  align-items: center;
}
.logo img {
  width: 116px;
  height: 64px;
  object-fit: contain;
}
.back {
  margin-left: auto;
  color: var(--mut);
  text-decoration: none;
  font-size: 13px;
}
.page {
  min-height: calc(100vh - 116px);
  display: grid;
  place-items: center;
  padding: 38px 0;
  background:
    radial-gradient(circle at 18% 12%, #fff0e8, transparent 28%),
    radial-gradient(circle at 84% 74%, #eff9dc, transparent 28%),
    linear-gradient(#fffdf8, #fff);
}
.auth {
  width: min(1040px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr 440px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.benefits {
  padding: 52px;
  background: linear-gradient(145deg, #2e2a28, #44362f);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.benefits:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 55px solid #ffffff0a;
  border-radius: 50%;
  right: -100px;
  bottom: -125px;
}
.benefits .kicker {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 12px;
  background: #ffffff14;
  color: #f2d878;
  font-size: 11px;
  font-weight: 800;
}
.benefits h1 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 18px 0 10px;
}
.benefits > p {
  color: #d6cdc7;
  max-width: 480px;
}
.points {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.point {
  display: flex;
  gap: 12px;
}
.point i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff12;
  color: #b8e955;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  flex: 0 0 36px;
}
.point b,
.point small {
  display: block;
}
.point small {
  color: #c9bfba;
  font-size: 11px;
}
.form-side, .welcome {
  padding: 46px 40px;
}
.form-side h2 {
  font-size: 28px;
  margin: 0;
}
.form-side > p {
  color: var(--mut);
  font-size: 13px;
  margin: 5px 0 27px;
}
.field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
}
.input {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
}
.input:focus-within {
  border-color: var(--g);
  box-shadow: 0 0 0 3px #88be211c;
}
.input input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 13px;
  background: transparent;
}
.eye {
  width: 45px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--mut);
}
.error {
  display: none;
  color: var(--r);
  font-size: 11px;
}
.field.bad .input {
  border-color: var(--r);
  background: var(--rs);
}
.field.bad .error {
  display: block;
}
.options {
  display: flex;
  align-items: center;
  margin: 16px 0;
}
.options label {
  font-size: 11px;
  color: var(--mut);
}
.options input {
  accent-color: var(--g);
}
.options a {
  margin-left: auto;
  color: var(--r);
  font-size: 11px;
  font-weight: 700;
}
.submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--g);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.submit:hover {
  background: var(--gd);
}
.demo {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 11px;
  color: var(--mut);
}
.demo b {
  color: var(--ink);
}
.manager {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--mut);
  font-size: 11px;
}
.manager a {
  color: var(--ink);
  font-weight: 800;
}
.manager a:hover {
    color: var(--red);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 8px);
  padding: 10px 15px;
  border-radius: 9px;
  background: #302d2b;
  color: #fff;
  opacity: 0;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 800px) {
  .wrap,
  .auth {
    width: calc(100% - 32px);
  }
  .auth {
    grid-template-columns: 1fr 390px;
  }
  .benefits {
    padding: 34px;
  }
  .benefits h1 {
    font-size: 31px;
  }
  .point:nth-child(3) {
    display: none;
  }
  .form-side, .welcome {
    padding: 38px 28px;
  }
}
@media (max-width: 620px) {
  .top {
    height: 30px;
    font-size: 10px;
  }
  .top .wrap {
    justify-content: center;
  }
  .wrap,
  .auth {
    width: calc(100% - 24px);
  }
  .head-main {
    height: 70px;
  }
  .logo img {
    width: 98px;
  }
  .back {
    font-size: 11px;
  }
  .page {
    display: block;
    padding: 16px 0 32px;
  }
  .auth {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
  }
  .benefits {
    padding: 23px 20px;
  }
  .benefits h1 {
    font-size: 25px;
    margin: 12px 0 7px;
  }
  .benefits > p {
    font-size: 12px;
    margin: 0;
  }
  .points {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 17px;
    overflow-x: auto;
  }
  .point {
    min-width: 185px;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff0b;
  }
  .point i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .point small {
    font-size: 9px;
  }
  .form-side, .welcome {
    padding: 25px 18px;
  }
  .form-side h2 {
    font-size: 24px;
  }
  .input {
    height: 49px;
  }
  .submit {
    height: 51px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ==========================================================================
   REGISTER
   ========================================================================== */

.auth--register {
  grid-template-columns:
    minmax(0, 1fr)
    470px;
}


.register-form .field:first-child {
  margin-top: 0;
}


.register-form .submit {
  margin-top: 22px;
}


.register-login {
  margin-top: 20px;
}


.register-message {
  margin: 0 0 20px;
  padding: 13px 15px;

  border-radius: 10px;

  font-size: 12px;
  line-height: 1.55;
}


.register-message--error {
  border: 1px solid #ffd2ce;

  background: var(--red-soft);
  color: var(--red);
}


.successMsg {
  width: min(1040px, calc(100% - 48px));

  margin: 0 auto 20px;
  padding: 16px 18px;

  border: 1px solid var(--green);
  border-radius: 12px;

  background: var(--green-soft);
  color: var(--green-dark);

  font-size: 13px;
  line-height: 1.6;
}


.successMsg strong {
  color: var(--ink);
}


/* REGISTER MOBILE */

@media (max-width: 800px) {

  .auth--register {
    grid-template-columns:
      minmax(0, 1fr)
      410px;
  }

}


@media (max-width: 620px) {

  .auth--register {
    display: flex;
  }

  .register-form .submit {
    margin-top: 18px;
  }

  .successMsg {
    width: calc(100% - 24px);
  }

}

/* ==========================================================================
   PASSWORD RECOVERY
   ========================================================================== */

.auth--password {
  grid-template-columns:
    minmax(0, 1fr)
    440px;
}


/* FORM */

.password-form .field:first-child {
  margin-top: 0;
}


.password-submit {
  margin-top: 22px;
}


/* ERRORS */

.password-message {
  margin: 0 0 20px;
  padding: 13px 15px;

  border-radius: 10px;

  font-size: 12px;
  line-height: 1.55;
}


.password-message--error {
  border: 1px solid #ffd2ce;

  background: var(--red-soft);
  color: var(--red);
}


.password-message--error:empty {
  display: none;
}


/* RESULT */

.password-result {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  padding: 18px;

  border: 1px solid var(--line);
  border-radius: 12px;
}


.password-result--success {
  border-color: rgba(161, 217, 39, .4);

  background: var(--green-soft);
}


.password-result--error {
  border-color: #ffd2ce;

  background: var(--red-soft);
}


.password-result__icon {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  font-size: 16px;
  font-weight: 800;
}


.password-result--success .password-result__icon {
  background: var(--green);
  color: #fff;
}


.password-result--error .password-result__icon {
  background: var(--red);
  color: #fff;
}


.password-result__content {
  min-width: 0;

  flex: 1;
}


.password-result__content > strong {
  display: block;

  margin-bottom: 5px;

  color: var(--ink);

  font-size: 14px;
  line-height: 1.3;
}


.password-result__content p {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.55;
}


.password-result__content p b {
  color: var(--ink);

  font-weight: 700;
}


.password-result__content small {
  display: block;

  margin-top: 9px;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.5;
}


/* RESULT BUTTON */

.password-result__button {
  min-height: 43px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  margin-top: 15px;
  padding: 0 15px;

  border-radius: 9px;

  background: var(--green);
  color: #fff;

  text-decoration: none;

  font-size: 11px;
  font-weight: 800;

  transition:
    background-color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}


.password-result__button span {
  font-size: 15px;

  transition: transform .15s ease;
}


.password-result__button:hover {
  background: var(--green-dark);

  transform: translateY(-1px);

  box-shadow:
    0 7px 18px rgba(95, 143, 0, .15);
}


.password-result__button:hover span {
  transform: translateX(2px);
}


.password-result--error .password-result__button {
  background: var(--red);
}


.password-result--error .password-result__button:hover {
  background: var(--red-dark);

  box-shadow:
    0 7px 18px rgba(233, 51, 43, .15);
}


/* LOGIN LINK */

.password-login {
  margin-top: 20px;
}


/* TABLET */

@media (max-width: 800px) {

  .auth--password {
    grid-template-columns:
      minmax(0, 1fr)
      390px;
  }

}


/* MOBILE */

@media (max-width: 620px) {

  .auth--password {
    display: flex;
  }


  .password-submit {
    margin-top: 18px;
  }


  .password-result {
    padding: 15px;
  }


  .password-result__icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }


  .password-result__button {
    width: 100%;
  }

}
