* {
  margin: 0;
  padding: 2px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f7fb;
  overflow-x: hidden;
  overflow-y: auto;
}

body.login-auth-checking {
  background: #fff;
  overflow: hidden;
}

body.login-auth-checking::before,
body.login-auth-checking::after,
body.login-auth-checking .login-container,
body.login-auth-checking #toastContainer {
  display: none !important;
}

.login-session-check {
  display: none;
}

body.login-auth-checking .login-session-check {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #334155;
  z-index: 9999;
}

.login-session-check__content {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.login-session-check__content img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
}

.login-session-check__content h1 {
  color: #172554;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
}

.login-session-check__content p {
  color: #64748b;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  width: 350px;
  height: 350px;

  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  top: -120px;
  left: -120px;
}

body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;

  background: rgba(37, 99, 235, 0.06);
  border-radius: 50%;
  top: -100px;
  left: -100px;
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.left-panel {
  width: 50%;
  max-width: 600px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 60px;
  text-align: center;
}

.logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 58px;
  margin-bottom: 30px;
}

.left-panel h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.left-panel p {
  max-width: 500px;
  font-size: 17px;
  line-height: 1.8;
}

.right-panel {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: 430px;
  background: #fff;
  padding: 45px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card h2 {
  font-size: 32px;
  color: #1f2937;
  margin-bottom: 8px;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 35px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.input-box {
  position: relative;
}

.icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 17px;
}

i {
  right: 16px;
  color: #4071c7;
  margin-right: 10px;
}

.input-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  width: auto;
  height: auto;
  cursor: pointer;
  color: #9ca3af;
  font-size: 17px;
}

.toggle-password:hover {
  color: #2563eb;
}

.form-group input {
  width: 100%;
  height: 54px;
  border: 0.5px solid rgb(219, 215, 215);
  padding-left: 48px;
  padding-right: 50px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #2563eb;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px 0;
  font-size: 14px;
}

.options a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn {
  width: 100%;
  height: 55px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn i,
.login-btn .fa,
.login-btn svg {
  color: #ffffff !important;
}

.home-screen-guide {
  margin-top: 24px;
  padding: 16px;
  border: 0.5px solid #dbe5f3;
  background: #f8faff;
  color: #374151;
}

.home-screen-guide h3 {
  margin: 0 0 5px;
  color: #1f2937;
  font-size: 15px;
}

.home-screen-guide > p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.home-screen-guide details {
  padding: 9px 0;
  border-top: 0.5px solid #e5eaf2;
  font-size: 12px;
}

.home-screen-guide summary {
  color: #1d4ed8;
  font-weight: 600;
  cursor: pointer;
}

.home-screen-guide ol {
  margin: 8px 0 0 20px;
  padding: 0;
  line-height: 1.7;
}

@media (max-width: 992px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
  }

  .login-card {
    width: 90%;
    max-width: 430px;
  }
}

@media screen and (max-width: 992px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }

  .login-btn,
  .form-group input,
  .login-card,
  .home-screen-guide {
    border-radius: 10px;
  }

  .login-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    display: none !important;
  }

  .right-panel {
    width: 100% !important;
    min-height: 100vh;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-card {
    width: 100% !important;
    max-width: 380px;
    padding: 28px 20px;
    margin: 0 auto;
  }

  .login-card h2 {
    font-size: 22px;
    text-align: center;
  }

  .subtitle {
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
  }

  .form-group input {
    height: 46px;
    font-size: 14px;
  }

  .options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 8px;
    margin-bottom: 20px;
  }

  .remember {
    gap: 4px;
    white-space: nowrap;
  }

  .login-btn {
    height: 48px;
  }
}
