.login-page {
  position: fixed;
  inset: 0;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #696969;
    border-color: #4c8fbd;
    background-color: #fff;
    outline: 0;
}
.login-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1800px;
  max-height: 92vh;
  min-height: 680px;
  gap: 16px;
}

.login-left {
  flex: 0 0 55.3%;
  align-self: stretch;
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(122, 20, 32, 0.18);
  background: var(--red-primary);
}

.login-left-tint {
  position: absolute;
  inset: 0;
  background: var(--red-primary);
  opacity: .82;
  pointer-events: none;
}

.login-left-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  box-sizing: border-box;
  pointer-events: none;
  text-align: center;
}

.login-left-logo {
  width: min(80%, 440px);
  height: auto;
  flex-shrink: 0;
}

.login-illustration-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}





.login-illustration {
  width: min(95%, 620px);
  max-width: 100%;
  height: auto;
  opacity: .95;
}

.login-right {
  flex: 0 0 41.7%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#loginFormWrap {
  width: 100%;
  max-width: 381px;
}

.login-title {
  color: var(--red-primary);
  font-family: 'NTJDisplay', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
  padding: 25px 0px;
  margin: 0;
  display: block;
  white-space: nowrap;
}

@media (max-width:992px) {
  .login-title {
    font-size: 32px !important;
  }

  .login-left {
    flex: 0 0 50.3%
  }
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--red-primary);
  margin-bottom: 8px;
}

.login-field input[type=text],
.login-field input[type=password] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  box-sizing: border-box;
}

.login-pw-wrap {
  position: relative;
}

.login-pw-wrap input {
  padding-right: 42px;
}

.login-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-eye .eye-icon {
  display: none;
}

.login-eye .eye-on {
  display: block;
}

.login-eye.bi-eye .eye-on {
  display: none;
}

.login-eye.bi-eye .eye-off {
  display: block;
}

.login-captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-captcha-row input {
  flex: 1;
}

.login-captcha-box {
  background: #f4f4f6;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(122, 20, 32, 0.08);
  border-radius: 8px;
  width: 88px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text-dark);
  user-select: none;
  flex-shrink: 0;
}

.login-captcha-refresh {
  color: var(--red-primary);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 22px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dark);
  cursor: pointer;
}

.login-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--red-primary);
  cursor: pointer;
}




.btn-login {
  width: 100%;
  background: var(--red-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  font-family: inherit;
}

.btn-login:hover {
  background: var(--red-deep);
}

.login-success-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 60px 20px;
  animation: slideUp .25s ease;
  width: 100%;
  max-width: 560px;
}

.login-success-msg.show {
  display: flex;
}

.login-success {
  font-family: 'NTJDisplay-SemiBold', sans-serif;
  text-align: center;
  padding: 40px 20px;
  font-size: 32px;
  font-weight: 500;
  color: #AE181D;
}

.login-success-text {
  color: var(--red-primary);
  font-family: 'NTJDisplay', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: .3px;
}

.login-field.has-error input, .login-field.has-error .login-captcha-box{
    border-color:#c0392b !important;
    background:#fdf0ef !important;
  }
.field-error-msg {
  display: block;
  color: #c0392b;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  overflow: hidden;
  transition:
    opacity .25s ease,
    max-height .25s ease,
    transform .25s ease;
}

.login-field.has-error .field-error-msg {
  opacity: 1;
  max-height: 30px;
  transform: translateY(0);
}

.login-field.has-error .text {
  animation: loginFieldShake .5s ease;
}

@keyframes loginFieldShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }
}

.d-none {
  display: none !important;
}
.captcha-box {
	width: 150px;
	height: 42px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: .2s ease;
}

.captcha-box.captcha-error {
	border-color: #dc3545;
	background-color: #fff1f1;
	box-shadow: 0 0 0 2px rgba(220, 53, 69, .12);
}
@media (max-width:760px) {
  .login-left {
    display: none;
  }

  .login-wrap {
    width: 100%;
    justify-content: center;
  }

  .login-right {
    padding: 0 8px;
  }
}