body {
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-y: hidden;
  width: 100%;
  max-width: 1440px;
}

.top-bar {
  position: absolute;
  top: 40px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 20px;
  font-weight: 400;
}

.top-bar .primary-btn {
  font-size: 16px;
  padding: 0;
  width: 91px;
  justify-content: center;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.login-logo {
  position: absolute;
  top: 40px;
  left: 60px;
  width: 100px;
  opacity: 1;
}

.login-card {
  background: white;
  padding: 60px 80px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 590px;
  position: relative;
}

.login-card h1 {
  margin-bottom: 40px;
}

.login-card h1::after {
  content: "";
  display: block;
  width: 145px;
  height: 2.5px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: #29abe2;
}

.back-btn {
  position: absolute;
  left: 48px;
  top: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.back-btn img {
  width: 21px;
  height: 21px;
  margin: 6px;
  border-radius: 50%;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transform: scale(1.2);
}

.input-group {
  width: 100%;
  max-width: 422px;
}

.link-blue {
  color: #29abe2;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  font-size: 16px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border-radius: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-wrapper label {
  cursor: pointer;
}

.button-group {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 35px;
  width: 100%;
  max-width: 322px;
}

.toast-section {
  z-index: 999;
  position: fixed;
  top: 50%;
  left: 50%;

  transform: translate(-50%, 550%);
  opacity: 0;

  background-color: var(--primary-color);
  width: 326px;
  height: 74px;
  border-radius: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  color: white;

  transition:
    transform 0.2s ease-in,
    opacity 0.2s ease-in;
}

.fade-in {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.footer-links {
  position: fixed;
  bottom: 40px;
  display: flex;

  gap: 30px;
  font-size: 14px;
  color: #888;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.splash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: all;
  transition:
    opacity 300ms ease,
    background 300ms ease;
}

.splash-logo {
  width: 180px;
  height: auto;
  transform: translate(0, 0) scale(1);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash.animate {
  background: #f4f5f7;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 300ms ease,
    background 300ms ease;
}

.splash.animate .splash-logo {
  transform: translate(-42vw, -36vh) scale(0.55);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-splash .login-logo {
  opacity: 0;
}

body.logo-early .login-logo {
  opacity: 1;
  transition: opacity 120ms ease;
}

.required-warning {
  position: absolute;
  left: 10px;
  color: red;
  font-size: 12px;
}

.checkbox-warning {
  margin-top: 35px;
  margin-left: 200px;
}

@media (prefers-reduced-motion: reduce) {
  .splash,
  .splash-logo {
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 100vh;
    overflow-y: auto;
  }

  .login-logo {
    position: absolute;
    max-width: 64px;
    max-height: 78px;
    top: 37px;
    left: 37px;
  }

  .login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    width: 100%;
  }

  .login-card {
    order: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 590px;
    box-sizing: border-box;
    padding: 30px 20px;
  }

  .login-card h1 {
    font-size: 47px;
  }

  .back-btn {
    top: 40px;
    left: 32px;
  }

  .top-bar {
    order: 2;
    max-width: 100%;

    position: static;
    display: flex;
    justify-content: center;

    padding-top: 80px;
  }

  .top-bar .primary-btn {
    width: 104px;
  }

  .input-group {
    max-width: 396px;
  }

  .button-group {
    flex-direction: column;
    max-width: 180px;
    gap: 21px;
  }

  .button-group button {
    display: flex;
    justify-content: center;
    font-size: 16px;
  }

  .footer-links {
    order: 3;
    position: absolute;
    width: 246px;
    height: 35px;
    bottom: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .login-logo {
    width: 48px;
    height: 52px;
    top: 16px;
    left: 16px;
  }

  .login-card h1 {
    margin: 0;
    font-size: 47px;
  }
  .login-card h1::after {
    margin: 8px auto;
  }

  .top-bar {
    padding-top: 0;
  }
}

@media (max-width: 350px) {
  .back-btn {
    left: 24px;
  }
}
