/* ==========================================================
   GENERAL
   ========================================================== */

:root{
  --verde:#76BA21;
  --naranja:#EE7B27;
  --gris:#efefef;
  --marron:#654a3d;
}

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

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Signika Negative', sans-serif;
}

html,
body{
    height:100%;
    margin:0;
    font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
    background:#ffffff;
    color:#1b1b1b;
}


/* ==========================================================
   HEADER
   ========================================================== */

header.site-header{
  display:none;
  position:fixed;
  top:0;
  width:100%;
  background:#ffffff;
  box-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-top:1px solid #efefef;
  z-index:1000;
  opacity:0;
  transition:opacity .45s ease;
}

body.authenticated header.site-header,
body.authenticated footer.site-footer {
  display:block;
  opacity:1;
}

.header-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
}

.logo img{
  height:50px;
}

.nav{
  display:flex;
  gap:30px;
  font-weight:600;
}

.nav a{
  text-decoration:none;
  color:#333;
  font-size:18px;
  transition:color .3s;
}

.nav a:hover{
  color:var(--naranja);
}

/* ==========================================================
   MAIN
   ========================================================== */

/* main{
  padding-top:120px; // compensar header fixed 
  padding-bottom:100px;
} **/

.login-container{
    display:flex;
    min-height:100vh;
}

.login-left{
    height:100vh;
    overflow:hidden;
    flex-shrink:0; 
}

.login-left img{
    width:auto;
    height:100vh;
    object-fit:cover;
    display:block;
}

.login-right{
    flex:1;
    min-width:420px;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px;
    background:#fff;
}


/* ==========================================================
   PANEL LOGIN
   ========================================================== */

.login-panel{
    width:100%;
    max-width:390px;
}

.login-logo{
    width:180px;
    margin-bottom:36px;
}

.login-panel h1{
    margin:0;
    font-size:34px;
    font-weight:700;
    line-height:1.15;
    color:#202020;
}

.subtitle{
    margin-top:14px;
    margin-bottom:42px;
    color:#707070;
    font-size:15px;
    line-height:1.5;
}


/* ==========================================================
   CAMPOS
   ========================================================== */

.field{
    margin-bottom:22px;
}

.field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
    color:#555;
}

.field input{

    width:100%;
    height:44px;

    padding:0 14px;

    border:1px solid #d7d7d7;
    border-radius:8px;

    background:#fff;

    font-size:15px;

    transition:.2s;
}

.field input:focus{

    outline:none;

    border-color:#E87309;

    box-shadow:0 0 0 4px rgba(239,90,76,.15);
}

/* =======================================================
   BOTÓN
======================================================= */
#btnLogin {
    width:100%;
    height:44px;

    border:none;
    border-radius:8px;

    background:#E87309;
    color:white;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    transition:.2s;
}

#btnLogin:hover:not(:disabled) {
    background: #cf3f31;
}

#btnLogin:disabled {
    cursor: wait;
    opacity: 0.9;
}

#btnLogin.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: btnSpin 0.9s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =======================================================
   IFRAME
======================================================= */

.iframe-container{
  display:none;
  max-width:1400px;
  margin:auto;
  padding:40px 20px;
  opacity:0;
  transition:opacity .45s ease;
}

.iframe-wrapper{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

body.authenticated .iframe-container {
  display:block;
  opacity:1;
}

iframe{
  width:100%;
  height:85vh;
  border:0;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer.site-footer {
  display:none;
  opacity:0;
  transition:opacity .45s ease;
}

.footer-top{
  background:var(--verde);
  padding:40px 20px;
  color:#ffffff;
}

.footer-inner{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.footer-logo img{
  width:220px;
}

.footer-contact{
  display:flex;
  flex-direction:column;
  gap:20px;
  font-size:18px;
}

.footer-contact a{
  text-decoration:none;
  color:#ffffff;
}

.footer-bottom{
  background:#ffffff;
  padding:15px 20px;
}

.footer-bottom-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  color:var(--marron);
}

.footer-bottom-inner a{
  text-decoration:none;
  color:var(--marron);
  margin-left:15px;
}

.footer-bottom-inner a:hover{
  text-decoration:underline;
}

/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width:960px){

    .login-left{
        display:none;
    }

    .login-right{
        width:100%;
        padding:40px 28px;
    }

    .login-panel{
        max-width:420px;
    }

    .footer-inner{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-bottom-inner{
        flex-direction:column;
        gap:15px;
    }

    .nav{
        display:none; /* simplificado para demo */
    }
}