/* Ask CLC login — split layout; branding left, form right */
.login-shell {
  display: flex;
  min-height: 100vh;
  padding: 8px;
  background: var(--white-color);
  border-radius: 0;
  overflow: hidden;
}

.login-brand {
  background: #000000;
  color: var(--white-color);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-image: url('../images/bg.png');
  background-repeat: no-repeat;
  width: 100%;
  max-width: 47%;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
}

.login-brand-logo {
  width: 64px;
  height: 64px;
}

.login-brand h1 {
  margin: 0;
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-brand .tagline {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  color: var(--white-color);
  line-height: 58px;
  max-width: 548px;
}

.login-brand-footer {
  position: absolute;
  bottom: 60px;
  left: 2.5rem;
}

.login-brand-footer img {
  width: 100%;
}

.login-brand-footer span {
  font-weight: 600;
}

.login-panel {
  flex: 1;
  background: var(--white-color);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 548px;
  margin: 0 auto;
}

.login-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.login-panel-header h2 {
  font-weight: 600;
  font-size: 40px;
  margin-bottom: 16px;

}

.login-panel-header p {
  margin: 0;
  color: var(--black-color);
  font-size: 18px;
  margin-bottom: 30px;
}

.login-form .field {
  margin-bottom: 24px;
}

.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-color);
  line-height: 20px;
  margin-bottom: 4px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0px 2px 1px 0px #1018280D;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 56px;
}

.login-form input:focus {
  border-color: var(--black-color);
}

.login-form input::placeholder {
  color: var(--text-color);
  opacity: .5;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 2.75rem;
}

.toggle-password {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  color: #6b7280;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Password masked: show “eye” (click to reveal). Visible: show “eye-off” (click to hide). */
.toggle-password .icon-eye-off {
  display: none;
}

.toggle-password .icon-eye {
  display: block;
}

.toggle-password.password-visible .icon-eye-off {
  display: block;
}

.toggle-password.password-visible .icon-eye {
  display: none;
}

.field-error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
}

.login-form .messages {
  margin-top: 0.75rem;
}

.login-form .messages {
  margin-bottom: 1rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
}

@media (max-width: 1140px) {
  .login-panel {
    max-width: 400px;
  }

  .login-brand {
    max-width: 50%;
  }

  .login-brand .tagline {
    font-size: 34px;
    line-height: 52px;
    max-width: 460px;
  }
}

@media (max-width: 899px) {
  .login-shell {
    flex-direction: column;
  }

  .login-brand {
    min-height: 40vh;
    max-width: 100%;
  }

  .login-brand-footer {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 60px;
  }

  .login-brand-footer img {
    width: 114px;
  }

  .login-brand .tagline {
    font-size: 30px;
    line-height: 44px;
    max-width: 100%;
  }

  .login-brand h1 {
    font-size: 50px;
  }

  .login-panel {
    max-width: 100%;
    padding: 0 60px;
  }
}

@media (max-width: 480px) { 
  .login-brand .tagline {
    font-size: 24px;
  }
  .login-brand h1 {
    font-size: 40px;
  }
  .login-panel {
    max-width: 100%;
    padding: 0 20px;
  }
  .login-brand {
    padding: 30px;
}
}