@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --login-ink: #183746;
  --login-muted: #748792;
  --login-accent: #67b3d4;
  --login-line: #c8d5db;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body.login-page {
  min-height: 100vh;
  color: #f5f8fa;
  background: #091f2a url("../img/background/login-bg-new.png") left center / cover no-repeat fixed;
  font-family: "Poppins", sans-serif;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: center;
  gap: clamp(40px, 8vw, 150px);
  width: min(100% - 64px, 1368px);
  min-height: 100vh;
  margin: 0 auto;
}

.login-intro {
  align-self: start;
  padding-top: clamp(72px, 13vh, 140px);
}

.login-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #83c3df;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.login-breadcrumb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--login-accent);
}

.login-intro h1 {
  max-width: 660px;
  margin: 20px 0 0;
  color: #f7f9fa;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.login-card {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  padding: 32px 30px 24px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 16px;
  background: rgba(246, 249, 251, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(2, 21, 29, .16);
  color: var(--login-ink);
  text-align: center;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
}

.login-brand img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 70px;
  object-fit: contain;
}

.login-card h2 {
  margin: 0;
  color: var(--login-ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
}

.login-description {
  max-width: 340px;
  margin: 4px auto 18px;
  color: var(--login-muted);
  font-size: 16px;
  line-height: 1.6;
}

.login-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 16px;
  text-align: left;
}

.login-alert-danger {
  background: #f8d7da;
  color: #842029;
}

.login-alert-success {
  background: #d1e7dd;
  color: #0f5132;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--login-line);
  border-radius: 5px;
  background: #fff;
  color: #385c6d;
  text-align: left;
}

.login-input-icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  font-size: 22px;
}

.login-input-wrap input[type="text"],
.login-input-wrap input[type="password"] {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--login-ink);
  font: inherit;
  font-size: 16px;
}

.login-input-wrap:focus-within {
  border-color: #6ba8bf;
  box-shadow: 0 0 0 3px rgba(103, 179, 212, .14);
}

.login-password-toggle {
  position: relative;
  display: grid;
  flex: 0 0 48px;
  height: 100%;
  place-items: center;
  border-left: 1px solid var(--login-line);
  color: #385c6d;
  font-size: 17px;
}

.login-password-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--login-ink);
  font-size: 16px;
  cursor: pointer;
}

.login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #28434d;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 2px;
  border: 0;
  border-radius: 5px;
  background: #293d45;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.login-submit:hover {
  background: #1d3038;
}

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

.login-submit span {
  font-size: 19px;
  line-height: 1;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 55, 70, .08);
  color: #102e3a;
  font-size: 15px;
  font-weight: 600;
}

.login-footer a {
  display: flex;
  align-items: center;
  max-width: 146px;
}

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

.login-footer-divider {
  color: #8798a0;
}

.login-ish-brand strong {
  color: #16afd2;
  font-size: 18px;
}

@media (max-width: 900px) {
  body.login-page {
    background-position: 38% center;
  }

  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
    gap: 28px;
    width: min(100% - 40px, 760px);
  }

  .login-intro h1 {
    font-size: 30px;
  }

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

@media (max-width: 640px) {
  body.login-page {
    background-image: linear-gradient(rgba(5, 25, 35, .68), rgba(5, 25, 35, .8)), url("../img/background/login-bg-new.png");
    background-position: center, 35% center;
    background-size: cover, auto 100%;
    background-attachment: scroll;
  }

  .login-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    width: min(100% - 32px, 430px);
    min-height: 100svh;
    padding: 28px 0;
  }

  .login-intro {
    align-self: stretch;
    padding: 0 2px;
  }

  .login-breadcrumb {
    gap: 10px;
    font-size: 11px;
  }

  .login-intro h1 {
    margin-top: 10px;
    font-size: clamp(24px, 7vw, 31px);
  }

  .login-card {
    max-width: none;
    justify-self: auto;
    padding: 25px 20px 18px;
  }

  .login-card h2 {
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .login-layout {
    width: min(100% - 24px, 430px);
  }

  .login-card {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.login-input-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-password-toggle .login-eye-cross {
  display: none;
}

.login-password-toggle.is-visible .login-eye-open {
  display: none;
}

.login-password-toggle.is-visible .login-eye-cross {
  display: block;
}
