html {
  height : 100%;
}

body {
  height              : 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Updated form styles for split-screen layout */
#myform {
  width: 100%;
}

section.nz-login-view {
  display         : flex;
  position        : relative;
  width           : 100%;
  align-items     : stretch;
  flex-direction  : column;
  gap: 1.5rem;
}

section.nz-login-view > * {
  width : 100%;
}

body > form > section > header {
  display     : flex;
  min-height  : 100px;
  align-items : center;
}

body > form > section > header > img {
  width : 215px;
  fill  : #4f535c;
}

section.nz-login-act {
  display         : flex;
  align-items     : stretch;
  flex-direction  : column;
  gap: 1.5rem;
}

section.nz-login-field {
  display        : flex;
  flex-direction : column;
  gap: 1rem;
}

body > form > section > footer {
  min-height : 100px;
}

/* Error message rows only — do not style .form-group (labels inherit red otherwise) */
section.nz-login-field div[class^="nz-i-msg-f-"] {
  display        : flex;
  padding-top    : 5px;
  padding-bottom : 15px;
  color          : var(--tpl1-error-color, #ee2727);
}

section.nz-login-field div[class^="nz-i-msg-f-"] > span {
  font-size : 12px;
}

section.nz-login-field > div.nz-signup-check {
  color:#000;
}

section.nz-login-field > div.nz-signup-check label > i {
  font-style: normal;
  color:#ff7700;
  font-weight: bold;
}

section.nz-login-field > div.nz-signup-check input[type="checkbox"] { display: none; }

section.nz-login-field > div.nz-signup-check input[type="checkbox"] + label {
  display: block;
  position: relative;
  padding-left: 29px;
  margin-bottom: 20px;
  font: 14px/20px 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

section.nz-login-field > div.nz-signup-check input[type="checkbox"] + label:last-child { margin-bottom: 0; }

section.nz-login-field > div.nz-signup-check input[type="checkbox"] + label:before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid #94969a;
  position: absolute;
  left: 0;
  top: 2px;
  opacity: .6;
  -webkit-transition: all .12s, border-color .08s;
  transition: all .12s, border-color .08s;
}

section.nz-login-field > div.nz-signup-check input[type="checkbox"].nz-inp-error + label:before {
  border-color: #ee2727;
}
.nz-signup-check .nz-inp-error + .control__indicator {
    border: 1px solid #ee2727;
}

section.nz-login-field > div.nz-signup-check input[type="checkbox"]:checked + label:before {
  width: 8px;
  border-color:#3ed72a;
  top: -2px;
  left: 2px;
  border-radius: 0;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

section.nz-login-separator {
  display     : flex;
  padding     : 10px 0px;
  align-items : center;
}

section.nz-login-separator > div {
  height        : 1px;
  border-bottom : 1px dashed #e0e2e5;
  flex          : 1;
}

section.nz-login-separator > span {
  margin    : 0px 11px;
  color     : #78828a;
  font-size : 14px;
}

section.nz-login-oauth {
  display        : flex;
  min-height     : 40px;
  padding        : 10px 0px;
  flex-direction : column;
  gap: 0.75rem;
}

section.nz-login-oauth > a {
  margin-bottom : 0;
  padding       : 0px;
}

section.nz-login-oauth > div {
  display: flex; 
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

section.nz-login-oauth > div > a {
  flex: 1;
  padding: 0;
}

section.nz-login-oauth > a > div.nz-login-oauth-icn,
section.nz-login-oauth > div > a > div.nz-login-oauth-icn {
  display         : flex;
  width           : 39px;
  min-width       : 39px;
  max-width       : 39px;
  height          : 39px;
  border-radius   : 2px 0px 0px 2px;
  background      : rgba(0,0,0,0.1);
  align-items     : center;
  justify-content : center;
}

section.nz-login-oauth > a > div.nz-login-oauth-icn > svg,
section.nz-login-oauth > div > a > div.nz-login-oauth-icn > svg {
  width  : 19px;
  height : 19px;
  fill   : #fff;
}

section.nz-login-oauth > a > div.nz-login-oauth-name,
section.nz-login-oauth > div > a > div.nz-login-oauth-name {
  text-align     : center;
  text-transform : uppercase;
  flex           : 1;
}

body > form > section.nz-app-overview {
  display       : flex;
  position      : relative;
  overflow      : hidden;
  border-radius : 0px 5px 5px 0px;
  flex          : 1;
}

body > form > section.nz-app-overview > section {
  width               : 500px;
  min-width           : 500px;
  height              : 466px;
  border-radius       : 0px 5px 5px 0px;
  background-color    : var(--color-bg-secondary);
  background-position : center center;
  background-size     : cover;
  transition          : transform 0.3s linear;
}

body > form > section.nz-app-overview > div.nz-app-ovrview-infos {
  z-index       : 999;
  box-sizing    : border-box;
  position      : absolute;
  right         : 0;
  bottom        : 0px;
  left          : 0px;
  padding       : 30px;
  border-radius : 0px 0px 5px 0px;
  background    : -moz-linear-gradient(
                    top,
                    rgba(0,0,0,0) 0%,
                    rgba(0,0,0,1) 100%
                  );
  background    : -webkit-linear-gradient(
                    top,
                    rgba(0,0,0,0) 0%,
                    rgba(0,0,0,1) 100%
                  );
  background    : linear-gradient(
                    to bottom,
                    rgba(0,0,0,0) 0%,
                    rgba(0,0,0,1) 100%
                  );
  filter        : progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 );
}

body > form > section.nz-app-overview > div.nz-app-ovrview-infos > div {
  height        : 37px;
  min-height    : 37px;
  margin-bottom : 23px;
}

body > form > section.nz-app-overview > div.nz-app-ovrview-infos > div > h2 {
  color     : #fff;
  font-size : 30px;
}

body > form > section.nz-app-overview > div.nz-app-ovrview-infos > ul {
  display     : flex;
  align-items : center;
}

body > form > section.nz-app-overview > div.nz-app-ovrview-infos > ul > li {
  width         : 23px;
  height        : 7px;
  margin-right  : 9px;
  border-radius : 4px;
  background    : #fff;
  transition    : width 0.15s linear;
}

body > form > section.nz-app-overview > div.nz-app-ovrview-infos > ul > li.nz-app-ovrview-selected {
  width      : 44px;
  background : #ff7700;
}

/* Input field */

input[type="password"],
input[type="text"] {
  -moz-appearance    : none;
  -o-appearance      : none;
  -webkit-appearance : none;
  padding            : 13px 15px;
  border             : 1px solid var(--tpl1-border-color);
  border-radius      : 4px;
  font-size          : 15px;
  transition         : var(--tpl1-transition);
  width              : 100%;
  box-sizing         : border-box;
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="password"]:focus-visible,
input[type="text"]:focus-visible {
  border-color: var(--tpl1-primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 211, 159, 0.15);
}

input[type="password"].nz-inp-error,
input[type="text"].nz-inp-error {
  color        : var(--tpl1-error-color) !important;
  border-color : var(--tpl1-error-color) !important;
  outline      : none;
  box-shadow   : 0 0 0 3px rgba(238, 39, 39, 0.1);
}

/* Loading */

div.nz-loading-fnc {
  z-index         : 1;
  display         : none;
  position        : absolute;
  top             : 0;
  right           : 0;
  bottom          : 0;
  left            : 0;
  width           : auto !important;
  border-radius   : 5px 0px 0px 5px;
  background      : #fff;
  align-items     : center;
  justify-content : center;
}

/* Full screen loading */

section.nz-login-loading-full {
  z-index         : 99999999;
  display         : none;
  position        : absolute;
  top             : 0;
  right           : 0;
  bottom          : 0;
  left            : 0;
  background      : #f5f7fa;
  align-items     : center;
  flex-direction  : column;
  justify-content : center;
}

section.nz-login-loading-full > img {
  max-width     : 264px;
  margin-bottom : 15px;
}

/* Two factor view */

section.nz-login-tfs {
  z-index         : 9999999999999;
  display         : flex;
  position        : absolute;
  top             : 0;
  right           : 0;
  bottom          : 0;
  left            : 0;
  background      : rgba(255,255,255,0.43);
  align-items     : center;
  justify-content : center;
}

section.nz-login-tfs > section {
  display         : flex;
  width           : 400px;
  height          : 400px;
  border-radius   : 2px;
  background      : #fff;
  box-shadow      : 0px 2px 5px #0000006e;
  align-items     : center;
  flex-direction  : column;
  justify-content : center;
}

section.nz-login-tfs > section > img {
  width  : 130px;
  height : 130px;
}

section.nz-login-tfs > section > form {
  display        : flex;
  margin-top     : 35px;
  align-items    : center;
  flex-direction : column;
}

section.nz-login-tfs > section > form > span {
  margin-bottom : 15px;
  font-size     : 16px;
  font-weight   : bold;
  text-align: center;
}

section.nz-login-tfs > section > form > input[type="text"] {
  margin-bottom  : 15px;
  text-align     : center;
  font-size      : 20px;
  letter-spacing : 15px;
}

section.nz-login-tfs > section > form > input[type="submit"] {
  text-transform : uppercase;
  font-weight    : bold;
}

/* Footer — transparent bar so it does not paint a white stripe over the split layout */
body > footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width : 100%;
  margin: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  border-top: none;
  box-shadow: none;
  z-index: 100;
  pointer-events: none;
}

body > footer > * {
  pointer-events: auto;
}

body > footer ul {
  margin-bottom: 0;
}

body > footer > ul {
  display: flex; align-items: center;
}

body > footer > ul > li {
  margin-left: 15px;
}

body > footer > ul > li > a {
  text-transform: uppercase;
  font-size: 13px;
  color:#ff7700;
  text-decoration: none;
  cursor: pointer;
}

body > footer > ul > li > a:hover {
  text-decoration: underline;
}

div.kr_lang_select {
  position: relative;
}

div.kr_lang_select > div {
  display: flex; align-items: center;
  width: auto;
  padding: 5px 9px 5px 5px;
  cursor: pointer;
}

div.kr_lang_select > div:hover {
  background: #e5e5e5;
}

div.kr_lang_select > div > div {
  width: 22px; height: 22px;
  margin-right: 7px;
}

div.kr_lang_select > div > span {
  font-weight: 500;
  color:#252525;
  font-size: 15px;
}

div.kr_lang_select > ul {
  position: absolute;
  bottom: 5px;
  left:5px;
  background: #fff;
  padding: 3px 0px;
  min-width: 170px;
  box-shadow: 0px 2px 3px #0000004a;
  display: none;
  height: 340px;
  max-height: 100vh;
  overflow-y: auto;
}

@media (max-width: 767.98px) {
  body > footer {
    position: static;
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    background: transparent;
    backdrop-filter: none;
  }

  body > footer > ul {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  body > footer > ul > li {
    margin-left: 0;
  }

  div.kr_lang_select > ul {
    bottom: auto;
    top: calc(100% + 6px);
    left: 0;
    max-height: 50vh;
  }
}

div.kr_lang_select > ul > li > a {
  display: flex; align-items: center;
  padding: 6px;
  cursor: pointer;
  text-decoration: none;
}

div.kr_lang_select > ul > li > a:hover {
  background: #f5f5f5;
}

div.kr_lang_select > ul > li > a > div {
  width: 22px; height: 22px;
  min-width: 22px;
  margin-right: 7px;
}

div.kr_lang_select > ul > li > a > span {
  font-weight: 500;
  color:#252525;
  font-size: 15px;
}

/* Ads */
div.nz-ads {
  margin-top: 20px;
}

div.nz-ads > ins {
  background: url('../img/login/google_ad.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Page view */
section.nz-page-view {
  position: absolute;
  z-index: 99999;
  top:0; left:0; right:0; bottom: 0;
  display: flex; justify-content: center; align-items: center;
  background: rgba(0,0,0,0.25);
  display: none;
}

section.nz-page-view > section {
  background: #fff;
  width: 750px;
  height: 90%;
  border-radius: 2px;
  box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
}

section.nz-page-view > section > section {
  flex:1;
  overflow-y: auto;
  padding: 15px;
  text-align: justify;
  font-size: 14px;
  color:#26282a;
}

section.nz-page-view > section > section h1,
section.nz-page-view > section > section h2,
section.nz-page-view > section > section h3,
section.nz-page-view > section > section h4,
section.nz-page-view > section > section h5 {
  margin:0px; padding: 0px;
  margin-bottom: 10px;
  margin-top: 15px;
  padding-bottom: 5px;
  width: 100%;
  border-bottom: 1px solid rgba(50,50,50,0.1);
}

section.nz-page-view > section > footer {
  display: flex; justify-content: flex-end;
  padding: 15px;
}

/* Country blacklisted */
body > form > section > section.nz-login-act-msg {
  display: flex; flex-direction: column;
  align-items: center;
}

body > form > section > section.nz-login-act-msg > span {
  font-weight: bold;
  color:#ea2626;
  font-size: 21px;
  text-align: center;
}

body > form > section > section.nz-login-act-msg > p {
  text-transform: uppercase;
  font-size: 13px;
  opacity: 0.8;
  padding-top: 15px;
}

body > form > section > section.nz-login-act-msg > ul {
  display: flex; flex-direction: column;
  align-items: stretch;
  width: 100%;
}

body > form > section > section.nz-login-act-msg > ul > li {
  text-align: center;
  background: #e5e9ef;
  padding: 13px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0px 3px 20px 0px #0000000d;
  font-size: 14px;
}

label {
  cursor: text;
}

/* Password toggle button */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper .form-control {
  padding-right: 45px;
}

.password-toggle-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 10;
  min-width: 32px;
  min-height: 32px;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
  color: #666;
  outline: 2px solid #38d39f;
  outline-offset: 2px;
  border-radius: 4px;
}

.password-toggle-btn:active {
  color: #333;
}

.password-toggle-btn i {
  font-size: 16px;
  pointer-events: none;
}

.password-toggle-icon {
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.password-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: currentColor;
  border-radius: 50%;
}

.password-toggle-btn[aria-pressed="true"] .password-toggle-icon {
  opacity: 0.55;
}

.password-toggle-btn[aria-pressed="true"] .password-toggle-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 7px;
  width: 2px;
  height: 18px;
  background: currentColor;
  transform: rotate(45deg);
}
