@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap');

body {
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bg-base,
.bg-marca,
.bg-azul {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
}
.bg-base {
    z-index: 1;
    background: url('http://capedu.edu.pe/AulaVirtual/Assets/img/fondologinnew.jpg') no-repeat center center/cover;
}

.container-global {
    z-index: 10;
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2vw 0;
}

.encabezado-login h3{
    color:#fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
.flex-login-box {
    display: flex;
    gap:30px;
}
.encabezado-login p{
    color:#fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

/* LOGIN Y TECLADO VIRTUAL */
.login-container,
.contenedor-teclado-virtual {
    width: 422px;
    max-width: 96vw;
    min-width: 260px;
    max-height: 372px; /* <-- aquí el cambio solicitado */
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    margin-bottom: 2.2rem;
    transition: all 0.22s;
    position: relative;
    z-index: 10;
}

.contenedor-teclado-virtual  h2{
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color:#18A74F;
}
.contenedor-teclado-virtual p{
    font-weight: 400;
    font-size: 14px;
    color:#BCBCBC;
}

.circulo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
    border: none;
    background-color: #18A74F;
}
.inactivo {
    background-color: #fff;
    border: 1px solid #AFAFAF;
}

.fila-teclado-numerico {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap:10px;
}
.btn-teclado-numerico, .btn-eliminar,.btn-retroceso {
    width: 50px;
    height: 60px;
    font-size: 18px;
    margin: 0;
}
.fila-teclado-numerico  .btn {
    background: #EFEFEF;
    border: none;
    border-radius: 10px;
    color: #747474;
    font-size: 16px;
    font-weight: 700;
}
.fila-teclado-numerico .btn-retroceso, .fila-teclado-numerico .btn-eliminar{
    background-color: #18A74F;
}
.btn-retroceso svg, .btn-eliminar svg{
    width: 20px;
    height: 20px;
}

.container-img-login { 
    width: 248px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 5px;
    background: #fff;
    position: relative;
  
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active{
    background-color: #18A74F;
}
.logo-gif.logo-fijo {
    width: 100%;
    min-width: 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.logo-gif.logo-fijo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#loginForm {
    width: 100%;
    max-width: 545px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
#loginForm .mb-3 {
    margin-bottom: 0;
}
#loginForm .mb-3:not(:last-child) {
    margin-bottom: 6px;
}
.input-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    box-shadow: 5px 5px 0px 0px #efefef;
    border-radius: 5px;
}
.svg-group {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #AFAFAF;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0 8px;
    height: 49px;
    background: #fff;
}
.svg-group svg {
    width: 22px;
    height: 22px;
}




.svg-group2 {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #AFAFAF;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 0 8px;
    height: 49px;
    background: #fff;
    cursor: pointer;

}
.svg-group2 svg {
    width: 22px;
    height: 22px;
}

.svg-group2 #eye-svg2 {
    display: none;
}


.btn-whatsapp {
    display: flex
;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    right: 20px;
    bottom: 1rem;
    border-radius: 30px;
    text-align: center;
    z-index: 999;
    float: right;
    background: #06bc47;
    width: auto;
    padding: 15px 20px;
    gap: 13px;
    cursor: pointer;
}

.btn-whatsapp svg {
    height: 2rem;
    width: 2rem;
}

.btn-whatsapp span {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}


.login-container input[type="text"], 
.login-container input[type="password"] {
    border: 1px solid #AFAFAF;
    border-left: none;
    border-radius: 0 5px 5px 0;
    font-size: 14px;
    font-weight: 400;
    color: #797979;
    background: #fff;
    padding: 0.65rem 0.95rem;
    width: 100%;
    height: 49px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.login-container input[type="password"] {
    border-right: none !important;
}

.input-group:focus-within .svg-group,
.input-group:focus-within input {
    border-color: #18A74F !important;
}
.login-container input:focus {
    outline: 0;
    box-shadow: none;
}

.login-container button {
    background: #18A74F !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    width: 345px !important;
    border: none !important;
    padding: 12px;
    border-radius: 20px;
    margin-top: 12px !important;
    box-shadow: 5px 5px 0px 0px #efefef;
    transition: background 0.19s;
}
.login-container button:hover {
    background: #12943f !important;
}
.caja-recordar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 0.5rem;
    margin-top: 12px;
}
.form-check-input {
    border:1px solid #797979 !important;
    margin-top: 0px !important;
    border-radius: 5px !important;
    font-size: 1.1rem !important;
    min-width: 17px;
    min-height: 17px;
}
.container-buton {
    width: 100%;
    padding:0 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.label-check {
    font-size: 14px;
    font-weight: 500;
    color: #797979;
}
.form-check-input:checked {
    background-color: #0E2B6D;
}

.redes {
      display: flex
;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0.9rem 0 1.1rem 0;

    position: fixed;
    right: 5rem;
    bottom: 5rem;
    border-radius: 30px;
    text-align: center;
    z-index: 998;
    float: right;
}
.redes svg {
    width: 36px;
    height: 36px;
    transition: transform 0.16s;
}
.redes svg:hover {
    transform: scale(1.13) rotate(-5deg);
    filter: brightness(1.09);
}

.container-copyright{
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    position: absolute;
    bottom: 0px;
}
.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    margin-top: 0.4rem;
}
.copyright p {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0;
    text-align:center;
}
@media (min-width: 1280px) and (max-width: 1600px) {
  .login-container, .contenedor-teclado-virtual {
      width: 350px;
      min-width: 210px;
      max-width: 430px;
      padding: 2.2rem 1.2rem;
      border-radius: 18px;
      max-height: 345px;
      margin-bottom: 1.2rem;
  }
  .container-img-login {
      width: 170px;
      max-width: 170px;
      min-width: 90px;
  }
  .logo-gif.logo-fijo {
      height: 60px;
  }
  .logo-gif.logo-fijo img {
      max-width: 110px;
      max-height: 60px;
  }
  .flex-login-box {
      gap: 18px;
  }
  .encabezado-login h3 {
      font-size: 15px;
  }
  .encabezado-login p {
      font-size: 13px;
  }
  .contenedor-teclado-virtual h2 {
      font-size: 13px;
  }
  .contenedor-teclado-virtual p {
      font-size: 12px;
  }
  .btn-teclado-numerico,
  .btn-eliminar,
  .btn-retroceso {
      width: 38px;
      height: 45px;
      font-size: 15px;
  }
  .btn-retroceso svg,
  .btn-eliminar svg {
      width: 15px;
      height: 15px;
  }
  #loginForm {
      max-width: 320px;
  }
  .login-container input[type="text"],
  .login-container input[type="password"] {
      font-size: 13px;
      height: 40px;
      padding: 0.45rem 0.7rem;
  }
  .svg-group, .svg-group2 {
      width: 28px;
      min-width: 28px;
      height: 40px;
      padding: 0 4px;
  }
  .svg-group svg, .svg-group2 svg {
      width: 15px;
      height: 15px;
  }
  .login-container button {
      width: 230px !important;
      max-width: 100% !important;
      padding: 9px;
      font-size: 13px !important;
      margin-top: 0.7rem;
      border-radius: 12px;
  }
  .container-copyright {
      max-width: 230px !important;
      margin: 0.4rem auto 0 auto !important;
      padding-top: 0.2rem;
  }
  .copyright p {
      font-size: 10.5px;
  }
  .btn-whatsapp {
      padding: 8px 13px;
      border-radius: 18px;
      gap: 7px;
      right: 1rem;
      bottom: 1rem;
  }
  .btn-whatsapp svg {
      width: 1.1rem;
      height: 1.1rem;
  }
  .btn-whatsapp span {
      font-size: 12px;
  }
  .redes svg {
      width: 22px;
      height: 22px;
  }
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .login-container, .contenedor-teclado-virtual {
        width: 74vw;
        min-width: 220px;
        max-width: 510px;
        padding: 2rem 1.1rem 1.3rem 1.1rem;
        max-height: 372px;
    }
    .container-img-login { width: 34vw; max-width: 230px; }
    .logo-gif.logo-fijo img { max-width: 100px; max-height: 48px; }
    #loginForm { max-width: 400px; }
    .redes svg { width: 25px; height: 25px; }
}

@media (max-width: 900px) {
.encabezado-login h3{
  font-size: 14px;
}

.encabezado-login p{
  font-size: 12px;
}
.circulo {
    width: 14px;
    height: 14px;
}
    .btn-whatsapp{
   
            right: 2rem;
        bottom: 1rem;
        border-radius: 15px;
        padding: 10px
    }
  .flex-login-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
  }

  .encabezado-login,
  .redes {
   position: relative;
   
   right: 0;
    bottom: 0;
  }

  .login-container,
  .contenedor-teclado-virtual {
    width: 93vw;
    min-width: 180px;
    max-width: 430px;
    padding: 1.2rem 1rem;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    box-sizing: border-box;
    max-height: 372px;
  }
.contenedor-teclado-virtual {
  display: none !important;
}
  .fila-teclado-numerico {
    gap: 10px;
    margin-top: 10px;
  }

  .btn-teclado-numerico,
  .btn-eliminar,
  .btn-retroceso {
    width: 48px;
    height: 58px;
    font-size: 16px;
  }

  .btn-retroceso svg,
  .btn-eliminar svg {
    width: 18px;
    height: 18px;
  }

  .container-img-login {
    width: 90vw;
    max-width: 180px;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .logo-gif.logo-fijo {
    height: 55px;
  }

  .logo-gif.logo-fijo img {
    max-width: 75px;
    max-height: 34px;
    object-fit: contain;
  }

  #loginForm {
    width: 100%;
    max-width: 300px;
    padding: 0;
  }

  .login-container input[type="text"],
  .login-container input[type="password"] {
    font-size: 14px;
    height: 40px;
    padding: 0.4rem 0.9rem;
  }

  .svg-group,
  .svg-group2 {
    width: 32px;
    min-width: 32px;
    height: 40px;
    padding: 0 4px;
  }

  .svg-group svg,
  .svg-group2 svg {
    width: 16px !important;
    height: 16px !important;
  }

  .login-container button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
    font-size: 14px;
    margin-top: 1rem;
  }

  .container-copyright {
    position: static !important;
    margin: 0 auto;
    padding-top: 0.8rem;
    width: 92vw;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .copyright p {
    font-size: 11px;
    color: #fff;
    margin: 0;
    text-align: center;
  }

  .btn-whatsapp span{
    display: none;
  }
      .btn-whatsapp {
        right: 2rem;
        bottom: 1rem;
        border-radius: 20px;
    }
}
@media (max-width: 650px) {
  .login-container,
  .contenedor-teclado-virtual {
    width: 96vw;
    max-width: 320px;
    min-width: 140px;
    padding: 1.2rem 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    max-height: 350px;
  }

  .fila-teclado-numerico {
    gap: 6px;
    margin-top: 8px;
  }

  .btn-teclado-numerico,
  .btn-eliminar,
  .btn-retroceso {
    width: 40px;
    height: 48px;
    font-size: 14px;
  }

  .btn-retroceso svg,
  .btn-eliminar svg {
    width: 16px;
    height: 16px;
  }

  .contenedor-teclado-virtual h2 {
    font-size: 14px;
  }

  .contenedor-teclado-virtual p {
    font-size: 12px;
  }

  .container-img-login {
    width: 98vw;
    max-width: 120px;
    min-width: 88px;
    margin-bottom: 0.6rem;
  }

  .logo-gif.logo-fijo {
    height: 44px;
  }

  .logo-gif.logo-fijo img {
    max-width: 88px;
    max-height: 44px;
  }

  #loginForm {
    max-width: 99vw;
    padding: 0 2vw;
  }

  .login-container input[type="text"],
  .login-container input[type="password"] {
    font-size: 15px;
    height: 38px;
    padding: 0.4rem 0.7rem;
  }

  .svg-group,
  .svg-group2 {
    width: 28px;
    min-width: 28px;
    height: 38px;
    padding: 0 5px;
  }

  .svg-group svg,
  .svg-group2 svg {
    width: 14px;
    height: 14px;
  }

  .login-container button {
    width: 92vw !important;
    max-width: 260px !important;
    font-size: 14px !important;
    padding: 9px;
    border-radius: 8px;
    margin-top: 10px !important;
  }

  .caja-recordar {
    gap: 5px;
  }

  .label-check {
    font-size: 13px;
  }

  .container-copyright {
    position: static !important;
    margin: 1.2rem auto 0 auto !important;
    width: 96vw !important;
    max-width: 320px !important;
    min-width: 220px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .copyright {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem !important;
    margin-top: 0.2rem !important;
  }

  .copyright p {
    font-size: 11px !important;
    text-align: center !important;
    color: #fff !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .contenedor-teclado-virtual {
    padding: 1rem 20px !important
  }
}

@media (max-width: 400px) {
  .login-container,
  .contenedor-teclado-virtual {
        padding: 1rem 40px;
        border-radius: 20px;
        width: 98vw;
        max-width: 323px;
        min-width: 140px;
        max-height: 285px;
        overflow-y: auto;
  }

  .fila-teclado-numerico {
    gap: 5px;
    margin-top: 6px;
  }

  .btn-teclado-numerico,
  .btn-eliminar,
  .btn-retroceso {
    width: 36px;
    height: 44px;
    font-size: 12px;
  }

  .btn-retroceso svg,
  .btn-eliminar svg {
    width: 14px;
    height: 14px;
  }

  .contenedor-teclado-virtual h2 {
    font-size: 13px;
  }

  .contenedor-teclado-virtual p {
    font-size: 11px;
  }

  .container-img-login {
    width: 98vw;
    max-width: 150px;
    min-width: 40px;
    margin-bottom: 1.4rem;
  }

  .logo-gif.logo-fijo {
    height: 26px;
  }

  .logo-gif.logo-fijo img {
    max-width: 150px;
    max-height: 26px;
  }

  #loginForm {
    max-width: 98vw;
    padding: 0 0.5vw;
  }

  .login-container input[type="text"],
  .login-container input[type="password"] {
    font-size: 12px;
    height: 35px;
    padding: 0.22rem 0.35rem;
  }

  .svg-group,
  .svg-group2 {
    width: 30px;
    min-width: 17px;
    height: 35px;
    padding: 0 0;
  }

  .svg-group svg,
  .svg-group2 svg {
    width: 9px;
    height: 9px;
  }

  .login-container button {
    width: 97vw !important;
    max-width: 100% !important;
    font-size: 11px !important;
    padding: 6px;
    border-radius: 50px;
    margin-top: 6px !important;
  }

  .label-check {
    font-size: 10px;
  }

  .container-copyright {
    width: 98vw !important;
    max-width: 170px !important;
    min-width: 100px !important;
    margin-top: 1rem !important;
  }

  .copyright p {
    font-size: 9px !important;
  }
}

