* {
  box-sizing: border-box;
}

.loginPage {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background: #f3f7fc;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loginContainer {
  width: 100%;
  max-width: 1120px;
  height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 38, 71, 0.12);
}

.loginInformation {
  padding: 46px;
  color: #ffffff;
  background:
    linear-gradient(rgba(13, 50, 94, 0.9), rgba(17, 87, 160, 0.9)),
    url("/images/hero-worker.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.loginLogo {
  width: fit-content;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.loginLogoIcon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.loginLogo > span:last-child {
  display: flex;
  flex-direction: column;
}

.loginLogo strong {
  font-size: 22px;
  line-height: 1.1;
}

.loginLogo small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.loginInformationContent {
  margin: auto 0;
  max-width: 450px;
}

.loginInformationLabel {
  margin-bottom: 14px;
  color: #9ed0ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.loginInformationContent h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
}

.loginInformationContent > p:not(.loginInformationLabel) {
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.loginBenefits {
  display: grid;
  gap: 20px;
}

.loginBenefits article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.loginBenefits article > span {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.loginBenefits article div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loginBenefits strong {
  font-size: 15px;
}

.loginBenefits small {
  color: rgba(255, 255, 255, 0.73);
  font-size: 13px;
  line-height: 1.5;
}

.loginFormSection {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loginFormWrapper {
  width: 100%;
  max-width: 430px;
}

.loginFormHeader {
  margin-bottom: 30px;
}

.loginWelcomeText {
  margin: 0 0 8px;
  color: #1268f3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.loginFormHeader h2 {
  margin: 0;
  color: #082653;
  font-size: 32px;
}

.loginFormHeader > p:last-child {
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.6;
}

.loginForm {
  display: grid;
  gap: 20px;
}

.loginFormGroup {
  display: grid;
  gap: 8px;
}

.loginFormGroup label {
  color: #26354d;
  font-size: 14px;
  font-weight: 650;
}

.loginFormGroup label span {
  color: #e53e3e;
}

.loginFormGroup input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: #26354d;
  font: 14px Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.loginFormGroup input::placeholder {
  color: #9ca5b1;
}

.loginFormGroup input:focus {
  border-color: #1268f3;
  box-shadow: 0 0 0 3px rgba(18, 104, 243, 0.12);
}

.passwordInputWrapper {
  position: relative;
}

.passwordInputWrapper input {
  padding-right: 72px;
}

.passwordToggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #98a2b3;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
}

.passwordToggle:hover {
  color: #667085;
}

.eyeIcon {
  width: 20px;
  height: 20px;
  display: block;
}

.loginOptions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rememberMe {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #596576;
  font-size: 14px;
  cursor: pointer;
}

.rememberMe input {
  width: 17px;
  height: 17px;
  accent-color: #1268f3;
}

.forgotPasswordLink {
  color: #1268f3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.forgotPasswordLink:hover,
.registerText a:hover {
  text-decoration: underline;
}

.loginMessage {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.loginErrorMessage {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.loginSuccessMessage {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.loginButton {
  width: 400px;
  min-height: 46px;
  justify-self: center;
  display: block;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1268f3;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.backHomeButton {
  width: 400px;
  min-height: 46px;
  margin: 0 auto;
  border: 0px solid #d7dee8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #263a54;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.loginButton {
  border: 0;
  background: #1473e6;
  color: #ffffff;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.loginButton:hover {
  background: #0752ca;
  transform: translateY(-1px);
}

.loginButton:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.loginDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a1ad;
  font-size: 13px;
}

.loginDivider::before,
.loginDivider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e3e7ed;
}

.backHomeButton {
  border: 1px solid #d7dfeb;
  background: #ffffff;
  color: #263a54;
}

.backHomeButton:hover {
  border-color: #1268f3;
  color: #1268f3;
}

.registerText {
  margin: 2px 0 0;
  color: #737f8d;
  font-size: 14px;
  text-align: center;
}

.registerText a {
  color: #1268f3;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .loginPage {
    padding: 20px;
  }

  .loginContainer {
    max-width: 600px;
    grid-template-columns: 1fr;
  }

  .loginInformation {
    min-height: 390px;
    padding: 36px;
  }

  .loginInformationContent {
    margin-top: 70px;
  }

  .loginInformationContent h1 {
    font-size: 34px;
  }

  .loginFormSection {
    padding: 46px 36px;
  }
}

@media (max-width: 520px) {
  .loginPage {
    padding: 0;
    align-items: stretch;
  }

  .loginContainer {
    min-height: 100vh;
    border-radius: 0;
  }

  .loginInformation {
    min-height: 330px;
    padding: 26px 22px;
  }

  .loginInformationContent {
    margin-top: 46px;
  }

  .loginInformationContent h1 {
    font-size: 28px;
  }

  .loginInformationContent > p:not(.loginInformationLabel) {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .loginBenefits {
    gap: 15px;
  }

  .loginFormSection {
    padding: 38px 22px;
  }

  .loginFormHeader h2 {
    font-size: 27px;
  }

  .loginOptions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
/* SERVIXA actual logo */
.loginLogo {
  width: 180px;
  height: 75px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.loginLogo img {
  width: 180px;
  height: 75px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
