* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
  background: linear-gradient(
      135deg,
      rgba(76, 79, 163, 1),
      rgba(27, 36, 92, 0.83)
    ),
    url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed;
}

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

.auth-card {
  width: 700px;
  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: 12px;
  color: #1f2437;
  font-size: 22px;
  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: 15px;
  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: 30px 34px 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;
  object-fit: contain;
}

.auth-logos .brand-logo-main {
  max-height: 42px;
}

.auth-logos .brand-logo-qualcomm {
  height: 18px;
}

.auth-logos .brand-logo-flag {
  max-height: 36px;
}

.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: 15px;
  color: #333146;
  border-radius: 3px;
  font-family: 'Jost', sans-serif;
  outline: none;
}

.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;
}

.auth-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.auth-footer a {
  color: rgb(54 62 210);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

#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-main {
    max-height: 32px;
  }

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

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

  .auth-close {
    color: #fff;
    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;
}
