* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Jost', sans-serif;

}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 750px;
  max-width: 880px;
  min-height: 400px;
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  position: relative;
  background: #fff;
}

.auth-close {
  position: absolute;
  right: 14px;
  top: -6px;
  color: #1f2437 !important;
  font-size: 30px;
  text-decoration: none;
  z-index: 5;
}

.auth-left {
  background: #2b324a;
  color: #fff;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-left p {
  text-align: center;
  font-size: 18px;
  margin: 0 0 28px;
  line-height: 1.5;
  color: #e8ebf3;
}

.social-btn {
  width: 100%;
  max-width: 240px;
  height: 44px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.social-facebook {
  background: #2b417a;
}

.social-google {
  background: #2f8df0;
}

.auth-right {
  background: #fff;
  padding: 35px 43px 50px;
  position: relative;
}

.auth-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-logos .brand-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.auth-logos .brand-logo {
  display: block;
  width: auto;
  max-width: 110px;
  height: 36px;
  object-fit: contain;
  flex: 0 1 auto;
  min-width: 0;
}

.auth-logos .brand-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.auth-logos .brand-logo-main {
  width: auto;
  max-width: 110px;
  height: 36px;
}

.auth-logos .brand-logo-qualcomm {
  width: auto;
  height: 16px;
}

.auth-logos .brand-logo-flag {
  width: auto;
  height: auto;
  max-height: 30px;
  max-width: 100px;
}

/* Saudi's desktop rule forces the logo row to nowrap (higher specificity),
     which overrides the mobile wrap and pushes it off-card on phones.
     Re-enable wrapping + shrink for this org on mobile. */
.auth-logos.org-l2pro-saudi-arabia .brand-logos,
.auth-logos.org-saudi-arabia .brand-logos {
  flex-wrap: wrap;
}

.auth-logos.org-l2pro-saudi-arabia .brand-logo,
.auth-logos.org-l2pro-saudi-arabia .brand-logo-main,
.auth-logos.org-saudi-arabia .brand-logo,
.auth-logos.org-saudi-arabia .brand-logo-main {
  max-width: 70px;
  max-height: 30px;
}

.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #1f2437;
  margin: 0 0 28px;
}

.auth-input,
.auth-input-group input {
  width: 100%;
  border: 1px solid #d5dae6;
  background: #fff;
  height: 48px;
  padding: 10px 15px;
  font-size: 16px;
  color: #333146;
  border-radius: 3px;
  font-family: 'Jost', sans-serif;
  outline: none;
}

#password {
  font-size: 16px;
}

.auth-input:focus,
.auth-input-group input:focus {
  border-color: #2f8df0;
}

.auth-input::placeholder,
.auth-input-group input::placeholder {
  color: #8a90a2;
}

.form-row {
  margin-bottom: 18px;
}

.auth-input-group {
  display: flex;
  align-items: stretch;
}

.auth-input-group input {
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.auth-input-group .toggle-eye {
  width: 48px;
  border: 1px solid #d5dae6;
  background: #fff;
  color: #6b7180;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
}

.auth-input-group .toggle-eye i {
  display: inline-block;
  transform-origin: center;
}

.auth-input-group .toggle-eye.eye-open i {
  animation: eyeOpen 0.28s ease;
}

.auth-input-group .toggle-eye.eye-close i {
  animation: eyeClose 0.28s ease;
}

@keyframes eyeOpen {
  0% {
    transform: scaleY(0.2) scaleX(0.9);
    opacity: 0.45;
  }

  60% {
    transform: scaleY(1.18) scaleX(1.04);
    opacity: 1;
  }

  100% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
  }
}

@keyframes eyeClose {
  0% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
  }

  45% {
    transform: scaleY(0.18) scaleX(0.96);
    opacity: 0.55;
  }

  100% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
  }
}

.btn-login {
  width: 100%;
  height: 48px;
  border: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
  font-family: "Jost", sans-serif;
  background: #fcc305;
  transition: background-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.auth-footer {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.auth-footer a {
  color: #0d6efd;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
}

#passwordError {
  color: #c22a2a;
  font-size: 14px;
  margin: 8px 0 0;
}

#lblLoginErr {
  display: block;
  color: #c22a2a;
  font-size: 14px;
  margin: 8px 0 0;
}

@media (max-width: 720px) {
  .auth-card {
    width: 100%;
    grid-template-columns: 1fr;
    max-width: 460px;
    min-height: auto;
  }

  .auth-left {
    padding: 40px 20px 30px;
  }

  .auth-right {
    padding: 24px 20px 34px;
  }

  .auth-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .auth-logos .brand-logos {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-logos .brand-logo {
    width: auto;
    max-width: 100px;
    height: 32px;
  }

  .auth-logos .brand-logo-main {
    width: auto;
    max-width: 110px;
    height: 32px;
  }

  .auth-logos .brand-logo-qualcomm {
    width: auto;
    height: 14px;
  }

  .auth-logos .brand-logo-flag {
    width: auto;
    height: auto;
    max-height: 28px;
  }

  .auth-close {
    color: #fff !important;
    font-size: 28px;
    top: 8px;
    right: 12px;
  }

  .auth-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }
}

.error-msg {
  color: #c22a2a;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.auth-input.error,
.auth-input-group input.error {
  border-color: #c22a2a !important;
  background-color: #fff8f7;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 14px;
  color: #333146;
  cursor: pointer;
}

.remember-row input {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.form-check-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #fcc305;
}

.form-check-label {
  cursor: pointer;
  font-size: 14px;
  color: #333146;
  margin: 0;
}

.text-nowrap {
  white-space: nowrap;
  color: #0d6efd;
  font-size: 14px;
}