@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body, html {
  overflow-x: hidden;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #FFF;
}

p {
  font-size: 14px;
  color: #6B7280;
}

h3 {
  font-size: 22px;
  color: #0f1c29;
}

a {
  cursor: pointer;
}

label {
  font-weight: 500;
  margin: 10px 0 6px;
  color: #243141;
  font-size: 13px;
}

.btn {
  border: none;
  outline: none;
}

.swal-text {
  text-align: center !important;
  padding: 0px 31px;
}

.btn-primary-login {
  display: block;
  margin-top: 16px;
  width: 100%;
  height: 44px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  border-radius: 8px;
  background-color: #0f1c29;
  border: 0;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-left {
  position: relative;
  background: #000 url('../img/background-login.jpg') center/cover no-repeat;
}

.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.10) 100%);
}

.login-left-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.login-brand {
  display: flex;
  align-items: center;
}

.login-brand img {
  height: 95px;
}

.login-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #F6B314 url('../img/bg-malha-colmeia.png') center/cover no-repeat;
  color: #0f1c29;
  max-width: 600px;
  margin: 0 auto;
}

.login-cta .cta-text {
  font-weight: 500;
  color: #0f1c29;
}

.login-cta .cta-action {
  background: #0f1c29;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
}

.login-cta .cta-action img {
  height: 14px;
}

.login-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
  border-radius: 24px 0 0 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-left: -32px;
}

.login-right-content {
  width: 500px;
  max-width: 92vw;
}

.login-back {
  position: absolute;
  top: 16px;
  left: 16px;
}

.login-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243141;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.login-back a img {
  height: 14px;
}

.login-card {
  width: 500px;
  max-width: 92vw;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.login-card h3 {
  margin: 0 0 8px 0;
}

.login-subtitle {
  margin: 0 0 16px 0;
  color: #6B7280;
  font-size: 14px;
}

.login-alert {
  margin-bottom: 12px;
}

.form-control {
  height: 40px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.form-row .remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6B7280;
  font-size: 13px;
}

.form-row .recover {
  font-size: 13px;
}

.form-row .recover a {
  color: #243141;
  text-decoration: none;
}

.back-link {
  text-align: right;
  margin-top: 8px;
  font-size: 13px;
}

.back-link a {
  color: #243141;
  text-decoration: none;
}

.input-with-icon { 
  position: relative; 
}

.input-with-icon input {
  padding-right: 38px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: inline-flex;
}

.toggle-password img {
  height: 18px;
}

.invalid-feedback {
  font-size: 12px;
  display: none;
  color: #DC2626;
  margin-top: 4px;
}

.was-validated input:invalid ~ .invalid-feedback {
  display: block;
}

.form-control[readonly] {
  background: #EFEFEF;
  color: #6B7280;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.button-row .btn-primary-login {
  margin-top: 0;
}

.btn-secondary-login {
  height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: #E5E7EB;
  color: #243141;
  border: none;
  cursor: pointer;
  width: 100%;
}


@media (max-width: 768px) {
  .login-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .login-left {
    height: 35vh;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  .login-left-content {
    justify-content: center;
    padding: 20px;
  }

  .login-brand {
    justify-content: center;
  }

  .login-brand img {
    height: 100px;
  }

  .login-back-mobile {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
  }
  
  .login-back-mobile a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #243141;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 500;
  }
  
  .login-back-mobile img {
    height: 12px;
  }

  .login-right {
    margin-left: 0;
    margin-top: -50px;
    border-radius: 24px 24px 0 0;
    padding: 30px 24px 24px;
    display: block;
    min-height: auto;
    box-shadow: none;
  }

  .login-right-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .login-card {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    padding: 0;
  }

  .login-card h3 {
    margin: 0;
    font-size: 16px;
  }

  .login-cta-mobile {
    margin-top: 15px;
    margin-bottom: 20px;
  }
  
  .login-cta-mobile .cta-wrapper {
    background: #F6B314 url('../img/bg-malha-colmeia.png') center/cover no-repeat;
    padding: 12px;
    border-radius: 12px;
    color: #0f1c29;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
  }
  
  .login-cta-mobile .cta-text {
    font-weight: 600;
    font-size: 15px;
    color: #0f1c29;
  }
  
  .login-cta-mobile .cta-action {
    background: #0f1c29;
    color: #fff;
    border-radius: 8px;
    height: 44px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    width: 100%;
    font-weight: 500;
  }

  .login-cta-mobile .cta-action img {
    height: 12px;
  }
}
