*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

/* Layout principal - Split Screen */
.pf-v5-c-login {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  height: 100vh;
  padding: 15px;
  margin: 0;
  background-color: #2b3a67;
  overflow: hidden;
}

/* Lado esquerdo - Formulário */
.pf-v5-c-login__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 80px;
  width: 45%;
  min-width: 420px;
  max-width: 550px;
  background-color: #2b3a67;
  height: 100vh;
}

/* Lado direito - Logos */
.login-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 15px;
  margin: 0;
  padding: 40px;
  position: relative;
  min-height: 100%;
}

.login-right-panel .logos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.login-right-panel .logo-conecta-rh {
  width: 160px;
  height: auto;
}

.login-right-panel .logo-prefeitura-sg {
  width: 300px;
  height: auto;
}

.login-right-panel .footer-text {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  color: #2b3a67;
  font-size: 13px;
  text-align: center;
}

/* Main content */
.pf-v5-c-login__main {
  background-color: transparent;
  box-shadow: none;
  width: 100%;
  max-width: 350px;
}

.pf-v5-c-login__main-header {
  padding: 0;
  margin-bottom: 20px;
}

.pf-v5-c-login__main-body {
  margin: 0;
  padding: 0;
}

/* Título "Entrar" */
.pf-v5-c-title {
  color: #8bc34a;
  font-size: 28px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 20px;
}

.pf-v5-c-form {
    display: block;
}

/* Labels dos campos */
.pf-v5-c-form__group-label {
  display: block;
  margin-bottom: 6px;
}

.pf-v5-c-form__label-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}

/* Campos de input */
.pf-v5-c-form__group {
  margin-bottom: 12px;
}

.pf-v5-c-input-group {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  border-radius: 8px;
  border: none;
}

.pf-v5-c-input-group__item > .pf-v5-c-form-control {
  background-color: transparent;
  border: 0;
}

.pf-v5-c-form-control {
  background-color: #ffffff;
  border-radius: 8px;
  height: 50px;
  border: none;
}

.pf-v5-c-form-control:after,
.pf-v5-c-form-control:before {
  border: 0;
}

.pf-v5-c-form-control input {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: #333333;
  background-color: #ffffff;
}

.pf-v5-c-form-control input::placeholder {
  color: #999999;
}

/* Botões */
.pf-v5-c-button {
  margin: 0;
  padding: 0;
}

.pf-v5-c-button:after {
  margin: 0;
  padding: 0;
  content: none;
}

.pf-v5-c-button.pf-m-primary {
  background-color: #8bc34a;
  height: 50px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  border: 0;
  color: #ffffff;
  margin-top: 10px;
}

.pf-v5-c-button.pf-m-primary:hover {
  background-color: #7cb342;
}

.pf-v5-c-button.pf-m-control {
  background-color: transparent;
  color: #666666;
  padding: 10px;
  font-size: 20px;
  padding-right: 14px;
}

.pf-v5-c-button.pf-m-secondary {
  background-color: white;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.pf-v5-c-button.pf-m-secondary > img {
  height: 28px;
  margin: auto;
}

/* Form actions */
.pf-v5-c-form__actions {
  margin-block-end: 0;
  margin-block-start: 0;
  margin-inline-end: 0;
  margin-inline-start: 0;
  gap: 10px;
}

/* Footer band */
.pf-v5-c-login__main-footer-band {
  border-block-start: none;
}

.pf-v5-c-login__main-footer-band-item {
  color: white !important;
}

/* Helper text e links */
.pf-v5-c-helper-text__item-text,
.pf-v5-c-helper-text__item-text a,
.pf-v5-c-helper-text__item-text a:link,
.pf-v5-c-helper-text__item-text a:visited {
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  color: #ffffff;
}

.pf-v5-c-helper-text__item-text a:hover {
  text-decoration: underline;
  font-weight: 600;
  color: #ffffff;
}

/* Mensagens de erro */
.pf-v5-c-helper-text__item.pf-m-error {
  padding-left: 10px;
  color: #ff6b6b;
}

/* Checkbox */
.pf-v5-c-check {
  padding-left: 3px;
}

.pf-v5-c-check__label {
  color: white;
}

/* Alerts */
.pf-v5-c-alert {
  margin-bottom: 15px;
}

.pf-v5-u-color-200 {
  color: white !important;
}

/* Esconde elementos não usados no novo layout */
.logo-colabore,
.logo-prefeitura {
  display: none;
}

/* Responsivo */
@media (max-width: 992px) {
  .pf-v5-c-login {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .pf-v5-c-login__container {
    width: 100%;
    min-width: auto;
    max-width: none;
    padding: 40px 30px;
    order: 1;
    height: auto;
    min-height: 50vh;
  }

  .login-right-panel {
    border-radius: 0 0 30px 30px;
    margin: 0;
    padding: 60px 20px;
    order: 0;
    min-height: auto;
    height: auto;
  }

  .login-right-panel .logos-container {
    gap: 30px;
  }

  .login-right-panel .logo-conecta-rh {
    width: 150px;
  }

  .login-right-panel .logo-prefeitura-sg {
    width: 200px;
  }

  .login-right-panel .footer-text {
    position: relative;
    bottom: auto;
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .pf-v5-c-login__container {
    padding: 30px 20px;
  }

  .pf-v5-c-login__main {
    max-width: 100%;
  }

  .pf-v5-c-title {
    font-size: 24px;
  }
}
