.login-page{
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background-image: var(--bg, url("../img/banner5.png"));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.login-page::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(10,35,90,.78), rgba(10,35,90,.30));
}

.login-left, .login-right{
  position: relative;
  z-index: 1;
}

.login-left{
  padding: 56px 56px 28px;
  color: #fff;
  display:flex;
  flex-direction: column;
}

.brand-top{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-icon{
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-mini{
  font-size: 12px;
  opacity: .9;
  letter-spacing: .2px;
}

.brand-name{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.login-title{
  font-size: 56px;
  line-height: 1.06;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.login-title span{
  color: #f6c04b;
}

.login-subtitle{
  max-width: 560px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  opacity: .92;
}

.login-footer{
  margin-top: auto;
  font-size: 12.5px;
  opacity: .85;
}

.login-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.login-card{
  width: min(520px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  padding: 26px 26px 20px;
  backdrop-filter: blur(8px);
}

.card-header{
  display:flex;
  justify-content:center;
  margin-bottom: 10px;
}

.card-logo{
  height: 150px;
  object-fit: contain;
}

.card-title{
  margin: 14px 0 6px;
  font-size: 28px;
  font-weight: 900;
  color: #0f2f63;
}

.card-desc{
  margin: 0 0 18px;
  color: #5a6a82;
}

.login-form{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.field-label{
  font-weight: 800;
  color: #203a63;
  margin-top: 6px;
}

.field{
  display:flex;
  align-items:center;
  gap: 10px;
  background: #fff;
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  padding: 12px 12px;
  position: relative;
}

.field-ico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #f2f6ff;
  color: #1e63b7;
  font-size: 16px;
  flex: 0 0 34px;
}

.field input{
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #1c2b44;
  background: transparent;
  min-height: 22px;
  padding-right: 38px;
}

.field-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 6px;
  gap: 10px;
}

.forgot{
  font-size: 13px;
  font-weight: 700;
  color: #1e63b7;
  text-decoration: none;
  white-space: nowrap;
}
.forgot:hover{ text-decoration: underline; }

.btn-primary{
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e63b7, #184f92);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.test-box{
  margin-top: 14px;
  border: 1px dashed #c8d7f2;
  background: #f7fbff;
  border-radius: 14px;
  padding: 12px 12px;
  text-align:center;
}

.test-title{
  font-weight: 900;
  color: #2a3d5f;
  margin-bottom: 6px;
}

.test-text{ color:#556a86; }

.back{
  display:block;
  text-align:center;
  margin-top: 12px;
  font-weight: 800;
  color: #2a3d5f;
  text-decoration: none;
}
.back:hover{ text-decoration: underline; }

/* ====== OLHINHO (igual envelope) ====== */
#togglePassword{
  position:absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #1e63b7;
  font-size: 18px;
  line-height: 1;
}
#togglePassword:hover{
  opacity: .8;
}
#togglePassword:active{
  opacity: .6;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 980px){
  .login-page{
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .login-left{
    display: none;
  }

  .login-right{
    padding: 18px 14px;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    align-items: center;
  }

  .login-card{
    width: 100%;
    max-width: 440px;
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .card-logo{
    height: 120px;
  }

  .card-title{
    font-size: 24px;
  }

  .card-desc{
    font-size: 14px;
  }
}

@media (max-width: 420px){
  .login-right{
    padding: 14px 12px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .login-card{
    padding: 18px 14px 14px;
  }

  .field{
    padding: 11px 11px;
  }

  .field-ico{
    width: 32px;
    height: 32px;
  }

  .btn-primary{
    padding: 12px 12px;
  }
}

@supports (-webkit-touch-callout: none){
  .login-page,
  .login-right{
    min-height: -webkit-fill-available;
  }
}
