/* Entrada de Contabilidad Ecofam: mismo diseño del inicio de sesión del sitio web de Ecofam */
:root { --tq: #017A82; --tq2: #009B95; --vd: #5B9611; --vd2: #7EB620; --cb: #3A3939; --br: #E6F2F2; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #fff; font-family: "Open Sans", Arial, sans-serif; color: var(--cb); display: flex; min-height: 100vh; }

.ef-panel { position: fixed; inset: 0 auto 0 0; width: 46%; background: radial-gradient(120% 90% at 0% 0%, #029aa1 0%, var(--tq) 45%, #015b61 100%); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 60px; }
.ef-panel:before, .ef-panel:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ef-panel:before { width: 520px; height: 520px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(126, 182, 32, .35), rgba(126, 182, 32, 0) 65%); }
.ef-panel:after { width: 420px; height: 420px; left: -140px; bottom: -170px; border: 2px solid rgba(255, 255, 255, .10); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03); }
.ef-logo { width: 300px; max-width: 80%; height: auto; position: relative; z-index: 1; }
.ef-centro { position: relative; z-index: 1; width: 100%; }
.ef-kicker { font-family: Montserrat, sans-serif; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: #d6f0a8; margin: 0 0 14px; }
.ef-panel h2 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.08; margin: 0 0 16px; color: #fff; text-transform: uppercase; }
.ef-panel h2 span { color: var(--vd2); }
.ef-sub { font-size: 16px; line-height: 1.6; max-width: 420px; margin: 0; color: rgba(255, 255, 255, .88); }

/* el latido */
.ef-ecg { width: 100%; max-width: 460px; height: 70px; margin: 30px 0 0; display: block; }
.ef-ecg path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: efEcg 3.6s ease-in-out infinite; }
.ef-ecg path.ef-sombra { stroke: rgba(126, 182, 32, .55); stroke-width: 7; filter: blur(3px); }
@keyframes efEcg { 0% { stroke-dashoffset: 900; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }

.ef-datos { position: relative; z-index: 1; display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .85); }
.ef-datos strong { display: block; font-family: Montserrat, sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 3px; }

.ef-lado { margin: 0 0 0 46%; width: 54%; padding: 40px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(180deg, #fff 0%, var(--br) 100%); }
.ef-lado > * { width: 100%; max-width: 380px; }
.ef-saludo { margin: 0 0 22px; text-align: left; }
.ef-saludo h1 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 28px; color: var(--cb); margin: 0 0 6px; }
.ef-saludo p { margin: 0; color: #6b6b6b; font-size: 15px; }
.ef-linea { display: block; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--tq), var(--vd2)); margin: 14px 0 0; }

form.ef-form { background: #fff; border: 1px solid rgba(1, 122, 130, .12); border-radius: 16px; box-shadow: 0 18px 45px rgba(1, 91, 97, .12); padding: 28px 28px 30px; margin: 0; }
.ef-form label { display: block; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; color: var(--cb); margin: 14px 0 6px; }
.ef-form label:first-of-type { margin-top: 0; }
.ef-campo { position: relative; }
.ef-form input[type=text], .ef-form input[type=password] { width: 100%; border: 1.5px solid #d5e3e3; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--cb); background: #fbfdfd; transition: border-color .2s, box-shadow .2s; }
.ef-campo input { padding-right: 48px !important; }
.ef-form input:focus { border-color: var(--tq); box-shadow: 0 0 0 4px rgba(1, 122, 130, .12); outline: 0; }
.ef-ver { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--tq); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.ef-ver:focus-visible { outline: 2px solid var(--tq); }
.ef-ver svg { width: 22px; height: 22px; }
.ef-boton { width: 100%; margin-top: 20px; background: linear-gradient(90deg, var(--tq) 0%, var(--tq2) 100%); color: #fff; border: 0; border-radius: 10px; height: 48px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 22px rgba(1, 122, 130, .25); transition: transform .15s, box-shadow .2s, background .2s; }
.ef-boton:hover, .ef-boton:focus-visible { background: linear-gradient(90deg, var(--vd) 0%, var(--vd2) 100%); box-shadow: 0 10px 22px rgba(91, 150, 17, .3); transform: translateY(-1px); outline: 0; }
.ef-boton:disabled { opacity: .65; cursor: default; transform: none; }
.ef-ayuda { margin: 8px 0 0; font-size: 12.5px; color: #6b6b6b; line-height: 1.45; }
.ef-msg { margin-top: 14px; font-size: 14px; border-radius: 10px; }
.ef-msg:empty { display: none; }
.ef-msg.mal { color: #a5281b; background: #fbe9e7; border-left: 4px solid #c0392b; padding: 10px 12px; }
.ef-msg.bien { color: #3d6a0a; background: #eef6df; border-left: 4px solid var(--vd); padding: 10px 12px; }
.ef-enlace { text-align: center; margin: 16px auto 0; font-size: 14px; }
.ef-enlace a { color: var(--tq); font-weight: 600; text-decoration: none; }
.ef-enlace a:hover { color: var(--vd); }
.ef-pie { margin-top: 26px; text-align: center; font-size: 12px; color: #8a9a9a; }
.ef-pie b { color: var(--tq); }

@media (max-width: 900px) {
  body { flex-direction: column; }
  .ef-panel { position: relative; width: 100%; padding: 26px 24px 18px; inset: auto; display: block; text-align: center; }
  .ef-centro > .ef-kicker, .ef-centro > h2, .ef-centro > .ef-sub, .ef-datos { display: none; }
  .ef-logo { width: 220px; margin: 0 auto; display: block; }
  .ef-ecg { height: 44px; margin: 12px auto 0; max-width: 300px; }   /* el latido se queda también en celular */
  .ef-lado { margin: 0; width: 100%; min-height: auto; flex: 1; padding: 26px 18px 40px; justify-content: flex-start; }
  .ef-panel { flex: none; }
  .ef-saludo h1 { font-size: 24px; }
  form.ef-form { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ef-ecg path { animation: none; stroke-dashoffset: 0; }
}
