
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Kalam:wght@400;700&display=swap');

:root{
  --navy:#052354;
  --navy2:#0a3b78;
  --blue:#0d68f5;
  --cyan:#19d5ff;
  --text:#0b2b5b;
  --muted:#657b9a;
  --line:#dbe6f3;
  --white:#fff;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#06285d;
}

body{min-height:100vh;overflow-x:hidden}

button,input{font:inherit}

.eme-login{
  min-height:100vh;
  display:grid;
  grid-template-columns:58.3% 41.7%;
  overflow:hidden;
}

/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */
.eme-hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:
    linear-gradient(92deg,rgba(4,28,70,.93) 0%,rgba(5,40,89,.78) 48%,rgba(5,41,88,.23) 100%),
    url("assets/eme-login-cartagena-bg.png") center/cover no-repeat;
}

.eme-hero__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(1,17,48,.02),rgba(2,25,63,.08) 50%,rgba(2,22,57,.54) 100%);
}

.eme-hero__geometry::before{
  content:"";
  position:absolute;
  top:-19%;
  left:47%;
  width:28%;
  height:120%;
  background:linear-gradient(180deg,rgba(48,154,255,.30),rgba(16,82,164,.10));
  transform:skewX(-30deg);
  border-left:1px solid rgba(255,255,255,.07);
  border-right:1px solid rgba(255,255,255,.04);
}

.eme-hero__geometry::after{
  content:"";
  position:absolute;
  left:-15%;
  bottom:-22%;
  width:130%;
  height:48%;
  background:linear-gradient(10deg,#061c4d 0%,#0a3470 56%,rgba(6,34,82,.72) 100%);
  transform:rotate(8deg);
  transform-origin:center;
  box-shadow:0 -1px 0 rgba(255,255,255,.06);
}

.eme-hero__content{
  position:relative;
  z-index:2;
  min-height:100vh;
  padding:6.4vh 6.7vw 5.4vh 6.4vw;
  display:flex;
  flex-direction:column;
}

.eme-brand{
  display:flex;
  align-items:center;
  gap:16px;
}

.eme-brandmark{
  width:112px;
  height:90px;
  background-image:url("assets/eme-logo-principal.png");
  background-repeat:no-repeat;
  background-size:330px auto;
  background-position:left center;
  flex:0 0 auto;
}

.eme-brandtext{
  display:flex;
  flex-direction:column;
  color:#fff;
  margin-top:2px;
}

.eme-brandtext strong{
  font-size:60px;
  line-height:.86;
  letter-spacing:.02em;
  font-weight:800;
}

.eme-brandtext span{
  margin-top:12px;
  font-size:13px;
  letter-spacing:.25em;
  color:rgba(255,255,255,.92);
}

.eme-rule{
  width:54px;
  height:4px;
  margin:24px 0 22px;
  border-radius:10px;
  background:var(--cyan);
  box-shadow:0 0 18px rgba(25,213,255,.45);
}

.eme-tagline{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#fff;
  letter-spacing:.17em;
  font-size:21px;
  line-height:1.1;
  font-weight:500;
}

.eme-benefits{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:32px;
}

.eme-benefit{
  display:flex;
  align-items:center;
  gap:16px;
  color:#fff;
}

.eme-benefit img{
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(35,177,255,.70);
  background:rgba(7,57,124,.62);
}

.eme-benefit strong,
.eme-benefit span{
  display:block;
}

.eme-benefit strong{
  font-size:16px;
  font-weight:700;
  margin-bottom:3px;
}

.eme-benefit span{
  font-size:13px;
  color:rgba(255,255,255,.78);
}

.eme-slogan{
  margin-top:auto;
  width:max-content;
  max-width:100%;
  color:#fff;
  font-family:"Kalam",cursive;
  transform:rotate(-2deg);
}

.eme-slogan span{
  display:block;
  font-size:clamp(28px,3vw,48px);
  line-height:.84;
}

.eme-slogan span:nth-child(2){
  margin-left:14px;
}

.eme-slogan i{
  display:block;
  width:82%;
  height:5px;
  margin:16px auto 0;
  border-radius:99px;
  background:var(--cyan);
  transform:rotate(-4deg);
}

.eme-location{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:28px;
  color:rgba(255,255,255,.78);
  letter-spacing:.23em;
  font-size:10px;
}

.eme-location .pin{
  color:var(--cyan);
  font-size:19px;
  line-height:1;
}

/* =========================================================
   PANEL DERECHO
   ========================================================= */
.eme-access{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:5vh 4vw 3vh;
  background:
    radial-gradient(circle at 100% 0%,rgba(255,255,255,.86),rgba(193,228,255,.74) 28%,rgba(101,181,239,.58) 58%,rgba(57,135,201,.40) 100%),
    url("assets/eme-login-cartagena-bg.png") center right/cover no-repeat;
}

.eme-access::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(150,210,249,.68),rgba(225,243,255,.48));
  backdrop-filter:blur(1.5px);
}

.eme-language{
  position:absolute;
  z-index:2;
  top:5.4vh;
  right:5.2vw;
  display:flex;
  align-items:center;
  gap:8px;
  color:#0f2f5e;
  font-size:13px;
  font-weight:600;
}

.eme-language img{
  width:24px;
  height:24px;
  object-fit:cover;
  border-radius:6px;
}

.eme-language .caret{
  margin-left:2px;
  font-size:18px;
}

.eme-card{
  position:relative;
  z-index:2;
  width:min(100%,500px);
  padding:42px 36px 34px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 46px rgba(20,62,115,.16);
}

.eme-card-logo{
  display:flex;
  justify-content:center;
}

.eme-card-logo img{
  width:192px;
  max-height:118px;
  object-fit:contain;
}

.eme-card-rule{
  width:48px;
  height:3px;
  margin:8px auto 20px;
  background:var(--cyan);
  border-radius:10px;
}

.eme-card-title{
  text-align:center;
}

.eme-card-title h1{
  margin:0;
  color:#0d2f63;
  font-size:31px;
  line-height:1;
  letter-spacing:-.035em;
}

.eme-card-title p{
  margin:8px 0 22px;
  color:#6c7fa0;
  font-size:17px;
}

.eme-field{
  height:50px;
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:12px;
  padding:0 14px;
  border:1px solid #d5e1ef;
  border-radius:10px;
  background:#fff;
}

.eme-field:focus-within{
  border-color:#78a9ed;
  box-shadow:0 0 0 3px rgba(13,104,245,.08);
}

.eme-field > img{
  width:21px;
  height:21px;
  object-fit:cover;
  border-radius:5px;
  flex:0 0 auto;
}

.eme-field input{
  flex:1;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#203659;
  font-size:13px;
}

.eme-field input::placeholder{
  color:#7183a1;
}

.eme-eye{
  width:30px;
  height:30px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.eme-eye img{
  width:21px;
  height:21px;
  object-fit:cover;
  border-radius:5px;
}

.eme-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:5px 0 0;
}

.eme-options label{
  display:flex;
  align-items:center;
  gap:7px;
  color:#263b5d;
  font-size:12px;
}

.eme-options input{
  width:15px;
  height:15px;
  accent-color:#0d68f5;
}

.eme-link{
  border:0;
  background:transparent;
  padding:0;
  color:#0068ff;
  font-size:12px;
  cursor:pointer;
}

.login-message{
  display:none;
  margin-top:12px;
  padding:9px 11px;
  border-radius:8px;
  font-size:11px;
}

.login-message.is-error{
  display:block;
  color:#9d3030;
  background:#fff1f1;
  border:1px solid #ffd8d8;
}

.login-message.is-success{
  display:block;
  color:#0a7253;
  background:#effbf6;
  border:1px solid #d2f0e4;
}

.eme-submit{
  width:100%;
  height:52px;
  margin-top:20px;
  padding:0 14px 0 24px;
  border:0;
  border-radius:12px;
  background:linear-gradient(100deg,#0a83ff,#034cc6);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  box-shadow:0 10px 24px rgba(9,93,218,.24);
  cursor:pointer;
  font-weight:700;
  letter-spacing:.02em;
}

.eme-submit__arrow{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:28px;
  font-weight:400;
}

.eme-divider{
  margin-top:22px;
  display:flex;
  align-items:center;
  gap:12px;
}

.eme-divider span{
  flex:1;
  height:1px;
  background:#dfe7f2;
}

.eme-divider p{
  margin:0;
  color:#7183a1;
  font-size:10px;
  white-space:nowrap;
}

.eme-footer{
  position:relative;
  z-index:2;
  width:min(100%,500px);
  margin-top:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  color:#e7f3ff;
  font-size:10px;
  text-shadow:0 1px 2px rgba(0,0,0,.20);
}

.eme-footer strong{font-size:13px}

.eme-footer i{
  width:1px;
  height:15px;
  background:rgba(255,255,255,.42);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1100px){
  .eme-login{
    grid-template-columns:54% 46%;
  }

  .eme-hero__content{
    padding-left:5vw;
    padding-right:4vw;
  }

  .eme-brandtext strong{font-size:48px}
  .eme-brandmark{width:94px;height:78px;background-size:285px auto}
  .eme-tagline{font-size:18px}
  .eme-benefit strong{font-size:14px}
  .eme-benefit span{font-size:11px}
}

@media (max-width:840px){
  .eme-login{display:block}
  .eme-hero{display:none}

  .eme-access{
    min-height:100vh;
    padding:78px 20px 28px;
  }

  .eme-language{
    top:24px;
    right:24px;
  }

  .eme-card{
    width:min(100%,480px);
  }

  .eme-footer{
    color:#48688d;
    text-shadow:none;
  }
}

@media (max-width:520px){
  .eme-access{padding:70px 14px 20px}
  .eme-card{padding:30px 20px 26px;border-radius:18px}
  .eme-card-logo img{width:160px}
  .eme-card-title h1{font-size:27px}
  .eme-card-title p{font-size:15px}
  .eme-options{align-items:flex-start;flex-direction:column}
  .eme-footer span:nth-of-type(n+2),
  .eme-footer i{display:none}
}
