:root {
  --tpl2-primary-color: #007bff;
  --tpl2-primary-hover: #0056b3;
  --tpl2-primary-dark: #0056b3;
  --tpl2-text-color: #333;
  --tpl2-text-muted: #6c757d;
  --tpl2-text-light: #ffffff;
  --tpl2-border-color: rgba(0,0,0,.2);
  --tpl2-error-color: #ff0000;
  --tpl2-bg-light: #f5f7fa;
  --tpl2-bg-gradient-start: #007bff;
  --tpl2-bg-gradient-end: #0056b3;
  --tpl2-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --tpl2-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --tpl2-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--tpl2-bg-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Split container layout */
.split-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Left side - Welcome section */
.left-side {
  flex: 1.2;
  background: linear-gradient(135deg, var(--tpl2-bg-gradient-start) 0%, var(--tpl2-bg-gradient-end) 100%);
  color: var(--tpl2-text-light);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.left-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.left-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
}

.welcome-header {
  margin-bottom: 3rem;
}

.welcome-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--tpl2-text-light);
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.welcome-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin: 0;
}

.feature-list {
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: var(--tpl2-transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--tpl2-text-light);
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--tpl2-text-light);
}

.feature-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

/* Right side - Form section */
.right-side {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.login-form-wrapper {
  width: 100%;
  max-width: 450px;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-img {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

a {
  text-decoration: none !important;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.myform {
  position: relative;
  display: flex;
  padding: 2rem;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--tpl2-border-color);
  border-radius: 1.1rem;
  outline: 0;
  max-width: 100%;
  box-shadow: var(--tpl2-shadow);
  transition: var(--tpl2-transition);
}

.myform:hover {
  box-shadow: var(--tpl2-shadow-hover);
}

.tx-tfm {
  text-transform: uppercase;
}

.mybtn {
  border-radius: 50px;
}

.login-or {
  position: relative;
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.span-or {
  display: block;
  position: absolute;
  left: 50%;
  top: -2px;
  margin-left: -25px;
  background-color: #fff;
  width: 50px;
  text-align: center;
}

.hr-or {
  height: 1px;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.google {
  color: #666;
  width: 100%;
  height: 40px;
  text-align: center;
  outline: none;
  border: 1px solid lightgrey;
}

form .error {
  color: #ff0000;
}

.formSignupContainer {
  display: none;
}

.formResetContainer {
  display: none;
}

/* 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;
}

/* Alert */
section.nz-notif-alt {
  z-index: 99999999999;
  display: flex;
  position: absolute;
  bottom: 10px;
  right: 20px;
  flex-direction: column-reverse;
}

section.nz-notif-alt > div {
  display: flex;
  margin-top: 10px;
  flex-direction: column;
}

/* 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: var(--tpl2-text-muted);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tpl2-transition);
  z-index: 10;
  min-width: 32px;
  min-height: 32px;
  border-radius: 4px;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
  color: var(--tpl2-primary-color);
  outline: 2px solid var(--tpl2-primary-color);
  outline-offset: 2px;
  background-color: rgba(0, 123, 255, 0.1);
}

.password-toggle-btn:active {
  color: var(--tpl2-primary-hover);
}

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

/* Full-width form column (avoid Bootstrap col-md-5 squeezing fields) */
.tpl2-form-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.myform .form-group > div[class*="kr-i-msg"] span {
  display: block;
  min-height: 1.25em;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.tpl2-form-link {
  color: var(--tpl2-primary-color);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

.tpl2-form-link:hover {
  color: var(--tpl2-primary-hover);
}

.tpl2-form-link:focus-visible {
  outline: 2px solid var(--tpl2-primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.tpl2-form-link-muted {
  color: #495057;
  text-decoration: underline;
}

.tpl2-form-link-muted:hover,
.tpl2-form-link-muted:focus-visible {
  color: var(--tpl2-primary-dark);
}

.tpl2-terms-link {
  position: relative;
  z-index: 2;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--tpl2-primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control.error {
  border-color: var(--tpl2-error-color);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 991.98px) {
  .split-container {
    flex-direction: column;
  }
  
  .left-side {
    flex: 0.6;
    padding: 2rem;
  }
  
  .welcome-header h1 {
    font-size: 2rem;
  }
  
  .feature-item {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .right-side {
    flex: 1;
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .left-side {
    display: none;
  }
  
  .right-side {
    flex: 1;
  }
  
  .welcome-header h1 {
    font-size: 1.75rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
  }
}
