/* ExcursionPass login revamp. Keep legacy form ids/classes intact. */
html,
body.login {
  min-height: 100%;
}

body.login {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 28px 16px;
  overflow-x: hidden;
  background: #1f2c38 !important;
  color: #111f2d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Arial, sans-serif;
}

@supports (min-height: 100svh) {
  body.login {
    min-height: 100svh;
  }
}

@supports (min-height: 100dvh) {
  body.login {
    min-height: 100dvh;
  }
}

body.login:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(28, 39, 51, .74), rgba(32, 45, 57, .60)),
    radial-gradient(circle at 53% 32%, rgba(45, 218, 213, .10), transparent 31%),
    url("../img/login/excursionpass-login-map-bg.jpg") center center / cover no-repeat;
}

body.login:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, transparent 0, transparent 230px, rgba(10, 18, 26, .10) 520px, rgba(10, 18, 26, .35) 100%),
    linear-gradient(180deg, rgba(9, 19, 29, .12), rgba(9, 19, 29, .34));
}

body.login .logo {
  display: none;
}

.login .content,
.login .copyright {
  position: relative;
  z-index: 1;
}

.login .content {
  box-sizing: border-box;
  width: 390px !important;
  max-width: calc(100vw - 32px);
  margin: 0 auto 18px !important;
  padding: 31px 30px 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 15px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(235, 246, 248, .58) 54%, rgba(212, 235, 237, .42)),
    radial-gradient(circle at 79% 2%, rgba(63, 218, 210, .30), transparent 31%),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, .72), transparent 34%);
  box-shadow:
    0 32px 80px rgba(0, 8, 16, .34),
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 -1px 0 rgba(5, 24, 35, .10) inset;
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.login .content:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  background:
    radial-gradient(ellipse at 20% 18%, rgba(255, 255, 255, .72), transparent 34%),
    radial-gradient(ellipse at 76% 14%, rgba(100, 221, 216, .28), transparent 38%),
    radial-gradient(ellipse at 50% 78%, rgba(255, 255, 255, .22), transparent 42%);
  filter: blur(8px);
}

.login .content *,
.login .content *:before,
.login .content *:after {
  box-sizing: border-box;
}

.login .logindiv {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  text-align: center;
}

.login .logoexcursion {
  width: 255px;
  max-width: 92%;
  height: auto;
  margin: 0 0 21px !important;
  filter: saturate(.95) contrast(1.07);
}

.login .content h3 {
  margin: 0 0 2px !important;
  color: #101b28 !important;
  text-align: center;
  font-size: 27px;
  font-weight: 500 !important;
  line-height: 1.14;
}

.login .content .login-subtitle {
  margin: 0 0 22px;
  color: #223242;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.login .content .hint,
.login .content form > p {
  color: #455868;
  text-align: center;
}

.login .content .alert {
  margin-bottom: 14px;
  border: 0;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(21, 41, 54, .12);
}

.login .content .form-group {
  position: relative;
  margin-bottom: 14px;
}

.login .content .form-control {
  height: 44px !important;
  border: 1px solid rgba(26, 40, 53, .34) !important;
  border-radius: 24px !important;
  background-color: rgba(246, 250, 251, .46) !important;
  color: #172839 !important;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(7, 21, 32, .035);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.login .content .form-control:focus {
  border-color: rgba(43, 204, 199, .92) !important;
  background-color: rgba(250, 253, 253, .72) !important;
  box-shadow:
    0 0 0 3px rgba(44, 213, 210, .13),
    0 8px 22px rgba(26, 190, 197, .08),
    inset 0 1px 2px rgba(7, 21, 32, .035) !important;
}

.login .content .form-control::-webkit-input-placeholder {
  color: #536575;
}

.login .content .form-control:-ms-input-placeholder {
  color: #536575;
}

.login .content .form-control::-moz-placeholder {
  color: #536575;
  opacity: 1;
}

.login .content #loginemail,
.login .content #loginpassword {
  padding-left: 40px !important;
  padding-right: 42px !important;
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 16px 16px;
}

.login .content #loginemail {
  border-color: rgba(35, 204, 199, .82) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23546775' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.login .content #loginpassword {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23546775' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.login .password-field .ep-password-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  padding: 0;
  border: 0;
  opacity: .62;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background: center / 17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23485b6a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='m4 4 16 16'/%3E%3C/svg%3E");
}

.login .password-field .ep-password-eye:hover,
.login .password-field .ep-password-eye:focus {
  opacity: .95;
  outline: none;
}

.login .password-field .ep-password-eye:focus {
  box-shadow: 0 0 0 3px rgba(44, 213, 210, .18);
  border-radius: 50%;
}

.login .password-field .ep-password-eye.is-visible {
  opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23158f9b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}

.login .remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
  color: #233241;
  font-size: 13px;
  font-weight: 500;
}

.login .remember-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #31d2cf;
}

.login .content .form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 26px !important;
  padding: 0 !important;
  border: 0 !important;
}

.login .content .form-actions .btn,
.login .content .btn.green,
.login .content #loginBtn {
  min-width: 112px;
  height: 43px;
  padding: 0 26px !important;
  border: 1px solid rgba(255, 255, 255, .70) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #63ece8 0%, #31cdd4 100%) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 12px 24px rgba(37, 203, 207, .36),
    0 0 0 4px rgba(61, 230, 224, .14),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.login .content .form-actions .btn:hover,
.login .content #loginBtn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(37, 203, 207, .44),
    0 0 0 5px rgba(61, 230, 224, .18),
    inset 0 1px 0 rgba(255, 255, 255, .48);
}

.login .content .form-actions .btn-default {
  min-width: auto;
  background: rgba(255, 255, 255, .80) !important;
  color: #233241 !important;
  box-shadow: none;
}

.login .content .forget-password {
  float: none !important;
  margin: 0 !important;
  color: #162739;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.login .content .forget-password:hover {
  color: #158f9b;
  text-decoration: none;
}

.login .content .create-account {
  margin: 0 -30px !important;
  padding: 18px 22px !important;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-radius: 0 0 15px 15px !important;
  background: linear-gradient(180deg, #064b75 0%, #053d62 100%) !important;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.login .content .create-account p,
.login .content .create-account > p {
  margin: 0;
}

.login .content .create-account p a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login .content .create-account p a:hover {
  color: #b5fbf8 !important;
  text-decoration: none;
}

.login .copyright {
  width: 390px;
  max-width: calc(100vw - 32px);
  margin: 0 auto !important;
  padding: 0 10px !important;
  color: rgba(232, 240, 246, .76) !important;
  text-align: center;
  font-size: 12px;
}

.login .copyright a {
  color: rgba(232, 240, 246, .86) !important;
}

@media (max-width: 620px) {
  body.login {
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
  }

  body.login:before {
    background-position: center center;
    background-size: auto 100%, auto, cover;
  }

  .login .content {
    width: 362px !important;
    max-width: 100%;
    margin: 0 auto 18px !important;
    padding: 29px 24px 0 !important;
  }

  .login .copyright {
    width: 362px;
    max-width: 100%;
    margin: 0 auto !important;
    text-align: center;
  }

  .login .logoexcursion {
    width: 246px !important;
    max-width: 92%;
    margin-bottom: 22px !important;
  }

  .login .content h3 {
    font-size: 26px;
  }

  .login .content .login-subtitle {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .login .content .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .login .content #loginBtn {
    width: 100%;
  }

  .login .content .forget-password {
    text-align: center;
  }

  .login .content .create-account {
    margin-left: -24px !important;
    margin-right: -24px !important;
  }
}

@media (max-height: 520px) {
  body.login {
    justify-content: flex-start;
    padding-top: 18px;
  }
}
