:root {
  --lime: #ccff00;
  --navy: #00035b;
  --grey: #f1f4f6;
}

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

html,
body.auth-page {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(0, 1fr);
  background: var(--grey);
  color: #111;
  overflow: hidden;
}

.auth-brand,
.auth-main {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.auth-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(30px, 4vw, 52px);
  background: linear-gradient(145deg, #000 0%, var(--navy) 100%);
  overflow: hidden;
  color: #fff;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  -webkit-mask-image: url("mevanti-app-icon-512.40c354b07263.png");
  mask-image: url("mevanti-app-icon-512.40c354b07263.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: luminance;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

.auth-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(420px, 85%);
  height: auto;
  filter: invert(1);
}

.auth-message {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-slogan {
  display: block;
  width: min(310px, 86%);
  height: auto;
}

.auth-message h1 {
  color: #fff;
  margin: 14px 0 13px;
  font-size: clamp(38px, 3.15vw, 48px);
  line-height: 1.02;
  letter-spacing: -1px;
}

.auth-message p {
  max-width: 440px;
  color: #cfd0ed;
  font-size: 14px;
}

.auth-foot {
  position: relative;
  z-index: 1;
  color: #8f91c3;
  font-size: 10px;
}

.auth-main {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  overflow-y: auto;
}

.auth-card {
  width: min(430px, 100%);
}

.auth-card h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.auth-card > p {
  margin: 7px 0 24px;
  color: #69717c;
}

.auth-form {
  padding: 25px;
  background: #fff;
  border: 1px solid #dce1e6;
  border-radius: 17px;
  box-shadow: 0 18px 50px #00035b10;
}

.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 17px;
  padding: 10px 12px;
  border: 1px solid #cdd3d9;
  border-radius: 9px;
  font: inherit;
}

.auth-form input:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px #00035b12;
}

.auth-form button {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 9px;
  background: var(--lime);
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-form button:hover {
  background: #b7e600;
}

.auth-error,
.auth-notice {
  margin-bottom: 15px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 11px;
}

.auth-error {
  background: #ffeded;
  color: #b51e1e;
}

.auth-notice {
  background: #efffb3;
  color: var(--navy);
}

.auth-error ul {
  margin: 5px 0 0;
  padding-left: 18px;
}

.auth-switch {
  margin-top: 16px;
  color: #69717c;
  font-size: 12px;
  text-align: center;
}

.auth-switch a {
  color: var(--navy);
  font-weight: 700;
}

.auth-help {
  display: block;
  margin: -10px 0 16px;
  color: #747d88;
  font-size: 10px;
}

@media (max-width: 680px) {
  body.auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(205px, 31dvh, 260px) minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .auth-brand,
  .auth-main {
    height: auto;
    min-height: 0;
  }

  .auth-brand {
    justify-content: flex-start;
    gap: clamp(25px, 5dvh, 42px);
    padding: 22px 24px 18px;
  }

  .auth-brand::after {
    width: 400px;
    height: 400px;
    opacity: .06;
  }

  .auth-logo {
    width: min(285px, 82vw);
  }

  .auth-slogan {
    width: min(245px, 72vw);
  }

  .auth-message h1 {
    margin: 8px 0 0;
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.02;
  }

  .auth-message p,
  .auth-foot {
    display: none;
  }

  .auth-main {
    align-items: start;
    padding: 20px 18px 24px;
  }

  .auth-card h2 {
    font-size: 27px;
  }

  .auth-card > p {
    margin: 4px 0 16px;
    font-size: 13px;
  }

  .auth-form {
    padding: 20px;
    border-radius: 15px;
  }

  .auth-form input {
    min-height: 43px;
    margin-bottom: 13px;
    font-size: 16px;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  body.auth-page {
    grid-template-rows: 180px minmax(0, 1fr);
  }

  .auth-brand {
    gap: 14px;
    padding: 17px 20px 14px;
  }

  .auth-brand::after {
    width: 340px;
    height: 340px;
  }

  .auth-logo {
    width: min(235px, 72vw);
  }

  .auth-slogan {
    width: min(205px, 65vw);
  }

  .auth-message h1 {
    display: none;
  }

  .auth-main {
    padding-top: 14px;
  }
}
