@import url("../fonts/Poppins/stylesheet.css");

.login-body {
  margin: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 136px);
  padding: 64px clamp(32px, 6.5vw, 278px);
  color: #ffffff;
  background-color: #09202b;
  background-image: var(--login-background);
  background-position: center;
  background-size: cover;
  font-family: "Poppins", sans-serif;
}

.login-page,
.login-page * {
  box-sizing: border-box;
}

.login-hero {
  align-self: start;
  margin-top: 4.5vh;
}

.login-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #77bedb;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-breadcrumb::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72bad8;
  content: "";
  order: 1;
}

.login-breadcrumb span:first-child {
  order: 0;
}

.login-breadcrumb span:last-child {
  order: 2;
}

.login-hero h1 {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 3.7vw, 2.65rem);
  font-weight: 500;
  line-height: 1.3;
}

.login-card {
  width: 100%;
  max-width: 470px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(244, 248, 250, 0.9);
  box-shadow: 0 20px 55px rgba(0, 12, 20, 0.2);
  color: #18313c;
  backdrop-filter: blur(8px);
}

.login-form {
  padding: 34px 28px 22px;
}

.login-brand {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.login-card h2 {
  margin: 0;
  color: #18313c;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.login-description {
  max-width: 320px;
  margin: 5px auto 18px;
  color: #70818a;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.login-alert {
  margin-bottom: 14px;
}

.login-alert .alert {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.login-alert .alert-danger {
  border-color: #efc1c5;
  background: #fff0f1;
  color: #8d2933;
}

.login-alert .alert-success {
  border-color: #b9dfcc;
  background: #effaf4;
  color: #245c3e;
}

.login-alert .alert-warning {
  border-color: #f1dba7;
  background: #fff9e9;
  color: #755a17;
}

.login-alert .alert-info {
  border-color: #bfdae4;
  background: #eef8fb;
  color: #28596b;
}

.login-field {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid #c9d3d9;
  border-radius: 5px;
  outline: 0;
  background: #ffffff;
  color: #203741;
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field::placeholder {
  color: #6f767a;
  opacity: 1;
}

.login-field:focus {
  border-color: #3f829b;
  box-shadow: 0 0 0 3px rgba(63, 130, 155, 0.14);
}

.login-password {
  position: relative;
}

.login-password .login-field {
  padding-right: 58px;
}

.login-password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d5dde1;
  border-radius: 0 5px 5px 0;
  background: #ffffff;
  color: #315465;
  cursor: pointer;
}

.login-password-toggle:focus-visible {
  outline: 2px solid #3f829b;
  outline-offset: -3px;
}

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

.login-password-toggle svg[hidden] {
  display: none;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 16px;
  color: #28424d;
  font-size: 16px;
}

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

.login-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 5px;
  background: #2b3e46;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 16px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.login-page-b2b .login-submit {
  margin-top: 16px;
}

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

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

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

.login-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 28px;
  border-top: 1px solid rgba(39, 62, 72, 0.08);
}

.login-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-footer img {
  display: block;
  width: 155px;
  max-height: 30px;
  object-fit: contain;
}

.login-footer p {
  margin: 0;
  color: #778991;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 32px;
    padding-right: 7vw;
    padding-left: 7vw;
  }
}

@media (max-width: 760px) {
  .login-page {
    min-height: 100svh;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    padding: 42px 20px;
    background-position: 42% center;
  }

  .login-hero {
    width: min(100%, 420px);
    margin-top: 0;
  }

  .login-hero h1 {
    margin-top: 10px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .login-card {
    width: min(100%, 420px);
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .login-form {
    padding: 28px 20px 20px;
  }

  .login-footer {
    margin-right: 20px;
    margin-left: 20px;
  }
}

.login-submit .login-arrow-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
}
