/*
 * Login page in the GSWaterS OASIS design, ported from the ThingsMiner login page
 * (things-miner ui-ngx/src/app/modules/login/pages/login/login.component.scss).
 * NanumSquare Neo is licensed under the SIL Open Font License 1.1 (fonts/NanumSquareNeo-OFL-1.1.txt).
 */
html,
body {
  margin: 0;
  height: 100%;
}

.oasis-login {
  position: fixed;
  inset: 0;
  overflow: auto;
  background: #fff;
  color: #0f2433;
  font-family: "NanumSquare Neo", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.oasis-login h1,
.oasis-login h2,
.oasis-login p {
  margin: 0;
  font-weight: inherit;
}

.oasis-login .water {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(150, 125, 90, .10), rgba(120, 160, 170, .05) 35%, rgba(11, 140, 244, .08)), #fff;
}

.oasis-login .vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(230, 238, 243, .7) 100%);
}

.oasis-login .page {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  padding: 56px 72px 36px;
}

.oasis-login .brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-width: 0;
}

.oasis-login .brand > div {
  min-width: 0;
  max-width: 100%;
}

.oasis-login .wordmark {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 22px;
}

.oasis-login .wordmark h1 {
  font-family: inherit;
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.oasis-login .wordmark .gs {
  color: #0b8cf4;
}

.oasis-login .sub {
  display: flex;
  align-items: center;
  gap: 16px;
}

.oasis-login .sub .bar {
  width: 1px;
  height: 46px;
  background: rgba(0, 47, 71, .2);
}

.oasis-login .oasis {
  color: #002f47;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}

.oasis-login .oasis-full {
  margin-top: 16px;
  color: #5b6b77;
  font-size: 15px;
  letter-spacing: .02em;
}

.oasis-login .oasis-full b {
  color: #0b8cf4;
  font-weight: 800;
}

.oasis-login .tag {
  margin-top: 18px;
}

.oasis-login .tag .en {
  color: #3d5260;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.005em;
}

.oasis-login .tag .ko {
  margin-top: 8px;
  color: #7d949c;
  font-size: 17px;
  letter-spacing: .02em;
}

.oasis-login .meta {
  color: #7d949c;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  line-height: 1.9;
  text-align: right;
  white-space: pre;
}

.oasis-login .login-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0;
  min-width: 0;
}

.oasis-login .card {
  box-sizing: border-box;
  width: 420px;
  max-width: 100%;
  padding: 40px 38px 32px;
  border: 1px solid rgba(0, 47, 71, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 30px 80px -24px rgba(0, 47, 71, .22), 0 2px 6px rgba(0, 47, 71, .05);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.oasis-login .card h2 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.oasis-login .card .lead {
  margin-top: 6px;
  color: #5b6b77;
  font-size: 14px;
  /* ThingsMiner inherits this from its global paragraph style. */
  line-height: 1.6;
}

.oasis-login .card .foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 47, 71, .10);
  color: #7d949c;
  font-size: 12.5px;
  line-height: 1.6;
  word-break: keep-all;
}

.oasis-login .login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.oasis-login .login-form label {
  display: block;
  margin-bottom: 8px;
  color: #5b6b77;
  font-size: 12.5px;
  font-weight: 700;
}

.oasis-login .field {
  position: relative;
  min-width: 0;
}

.oasis-login .field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(0, 47, 71, .14);
  border-radius: 10px;
  outline: none;
  background: #f6f9fb;
  color: #0f2433;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.oasis-login .field input::placeholder {
  color: #9fb0ba;
}

.oasis-login .field input:focus {
  border-color: #0b8cf4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 140, 244, .18);
}

.oasis-login .field input:-webkit-autofill,
.oasis-login .field input:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0 1000px #f6f9fb inset;
  -webkit-text-fill-color: #0f2433;
  caret-color: #0f2433;
  transition: background-color 9999s;
}

.oasis-login .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(11, 140, 244, .18);
  -webkit-text-fill-color: #0f2433;
}

.oasis-login #password-input {
  padding-right: 70px;
}

.oasis-login .toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 8px;
  border: 0;
  background: none;
  color: #7d949c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transform: translateY(-50%);
}

.oasis-login .toggle:hover {
  color: #0f2433;
}

.oasis-login .err {
  color: #e0452b;
  font-size: 13px;
}

.oasis-login .err[hidden] {
  display: none;
}

.oasis-login .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 2px;
  font-size: 13px;
}

.oasis-login .row a {
  border: 0;
  color: #5b6b77;
  text-decoration: none;
}

.oasis-login .row a:hover {
  color: #0b8cf4;
}

.oasis-login .login-form label.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5b6b77;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  white-space: nowrap;
}

.oasis-login .login-form label.chk input {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(0, 47, 71, .3);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.oasis-login .login-form label.chk input:checked {
  border-color: #0b8cf4;
  background: #0b8cf4;
}

.oasis-login .login-form label.chk input:checked::after {
  width: 8px;
  height: 4px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.oasis-login button.submit {
  position: relative;
  height: 52px;
  margin-top: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a9df7, #0a7ad8);
  box-shadow: 0 10px 24px -8px rgba(11, 140, 244, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .15s, filter .2s;
}

.oasis-login button.submit:hover {
  filter: brightness(1.08);
}

.oasis-login button.submit:active {
  transform: translateY(1px);
}

.oasis-login button.submit.loading {
  pointer-events: none;
}

.oasis-login button.submit.loading span {
  opacity: 0;
}

.oasis-login button.submit.loading::after {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: oasis-spin .8s linear infinite;
  content: "";
}

.oasis-login .site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.oasis-login .site-footer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 56px;
  object-fit: contain;
}

.oasis-login .site-footer .copy {
  color: #7d949c;
  font-size: 12px;
  letter-spacing: .02em;
}

.oasis-login .process {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  color: #5b6b77;
  font-size: 12.5px;
  letter-spacing: .02em;
}

.oasis-login .process .st {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.oasis-login .process .st small {
  color: #7d949c;
  font-size: 10px;
  letter-spacing: .12em;
}

.oasis-login .process .st b {
  font-weight: 800;
}

.oasis-login .process .st.in b {
  color: #8a7356;
}

.oasis-login .process .st.mid b {
  color: #4f8a9e;
}

.oasis-login .process .st.out b {
  color: #0b8cf4;
}

.oasis-login .process .ln {
  width: 90px;
  height: 2px;
  border-radius: 2px;
}

.oasis-login .process .ln.a {
  background: linear-gradient(90deg, #a8916e, #6aa3b5);
}

.oasis-login .process .ln.b {
  background: linear-gradient(90deg, #6aa3b5, #0b8cf4);
}

@media (max-width: 1100px) {
  .oasis-login .page {
    padding: 36px 32px 28px;
  }

  .oasis-login .wordmark h1 {
    font-size: 60px;
  }

  .oasis-login .oasis {
    font-size: 32px;
  }

  .oasis-login .oasis-full {
    font-size: 13px;
  }

  .oasis-login .sub .bar {
    height: 34px;
  }

  .oasis-login .meta,
  .oasis-login .process {
    display: none;
  }

  .oasis-login .login-area {
    justify-content: center;
  }
}

@media (max-height: 900px) {
  .oasis-login .page {
    padding-top: 28px;
    padding-bottom: 16px;
  }

  .oasis-login .tag {
    display: none;
  }

  .oasis-login .wordmark h1 {
    font-size: 60px;
  }

  .oasis-login .oasis {
    font-size: 32px;
  }

  .oasis-login .sub .bar {
    height: 34px;
  }

  .oasis-login .oasis-full {
    margin-top: 10px;
  }

  .oasis-login .login-area {
    padding: 8px 0;
  }

  .oasis-login .card {
    padding: 26px 34px 20px;
  }

  .oasis-login .card .foot {
    margin-top: 14px;
    padding-top: 12px;
  }

  .oasis-login .login-form {
    gap: 12px;
    margin-top: 18px;
  }

  .oasis-login .site-footer img {
    height: 40px;
  }
}

@media (max-width: 560px) {
  .oasis-login .page {
    gap: 20px;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .oasis-login .wordmark {
    gap: 12px;
    row-gap: 16px;
  }

  .oasis-login .wordmark h1 {
    font-size: clamp(32px, 10.5vw, 44px);
  }

  .oasis-login .oasis {
    font-size: 26px;
  }

  .oasis-login .sub .bar {
    height: 26px;
  }

  .oasis-login .card {
    padding: 28px 22px 24px;
  }

  .oasis-login .field input::placeholder {
    font-size: 14px;
  }

  .oasis-login .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .oasis-login .site-footer img {
    height: 40px;
  }
}

@keyframes oasis-spin {
  to {
    transform: rotate(360deg);
  }
}
