:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#0d3b4a;background:#f5f9fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(350px,35.2%) minmax(0,1fr)}.login-brand{position:relative;isolation:isolate;min-height:100vh;padding:clamp(35px,5.5vw,90px) clamp(34px,5.5vw,92px) 52px;display:flex;flex-direction:column;justify-content:space-between;gap:35px;overflow:hidden;color:#fff;background:#073c4b}.login-brand:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(155deg,rgba(4,51,65,.95) 3%,rgba(3,55,71,.87) 52%,rgba(4,58,70,.73) 100%),url('../img/huerto-banner.webp') center/cover no-repeat}.login-brand:after{content:"";position:absolute;z-index:-1;width:460px;height:620px;border:2px solid rgba(70,202,128,.4);border-radius:50%;right:-365px;top:-100px;transform:rotate(-28deg)}.brand-logo{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.brand-logo img{width:128px;height:116px;object-fit:contain;object-position:left center}.brand-logo>span{font-size:18px;letter-spacing:.23em;font-weight:800}.eyebrow{font-size:12px;letter-spacing:.28em;font-weight:800}.brand-message h1{font-size:clamp(39px,3.7vw,66px);line-height:1.09;letter-spacing:-.05em;margin:20px 0}.brand-message .eyebrow{color:#b6d6d8}.brand-accent{height:3px;width:60px;background:#65c848;margin:24px 0}.brand-message p{font-size:17px;line-height:1.65;color:#d1e2e4;margin:0}.brand-benefits{display:grid;gap:21px}.benefit{display:flex;align-items:center;gap:17px}.benefit-icon{width:38px;font-size:30px;font-weight:300;color:#b1dba5;line-height:1;text-align:center}.benefit strong,.benefit small{display:block}.benefit strong{font-size:14px}.benefit small{font-size:13px;color:#c5dce0;margin-top:4px}.login-panel{position:relative;display:flex;justify-content:center;align-items:center;min-width:0;padding:45px 6%;overflow:hidden;background:radial-gradient(ellipse at 95% 8%,#eaf5f7 0,transparent 42%),linear-gradient(145deg,#f9fcfd,#eef7f9)}.login-panel:before,.login-panel:after{content:"";position:absolute;width:320px;height:320px;background:#dfeff2;opacity:.46;transform:rotate(45deg);border-radius:65px;pointer-events:none}.login-panel:before{right:-240px;top:-130px}.login-panel:after{left:-255px;bottom:-170px}.login-card{position:relative;z-index:1;width:min(555px,100%);padding:clamp(28px,3vw,48px);border-radius:23px;background:#fff;box-shadow:0 18px 60px rgba(17,62,75,.09)}.login-card>.eyebrow{color:#1385a1}.login-card h2{font-size:clamp(30px,2.4vw,39px);letter-spacing:-.045em;margin:13px 0 10px}.sub{font-size:15px;color:#788b95;line-height:1.6;margin:0 0 26px}.access-choice{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#eaf0f2;border-radius:14px;padding:5px;margin:0 0 27px}.access-option{cursor:pointer;position:relative;margin:0}.access-option input{position:absolute;opacity:0;width:1px;height:1px}.access-option>span{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 8px;border-radius:10px;color:#526872;font-weight:700;font-size:14px}.access-option input:checked+span{background:#fff;color:#085371;box-shadow:0 2px 8px #173d491a}.access-option input:focus-visible+span{outline:3px solid #278a9d}.choice-icon{font-size:18px;color:#2985a1}.field-label{display:block;font-size:13px;font-weight:750;margin:20px 0 9px}.input-wrap{position:relative}.input-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);color:#81949e;font-size:19px;pointer-events:none}.input-wrap input{display:block;width:100%;border:1px solid #d5e1e5;border-radius:12px;background:#fff;padding:16px 15px 16px 49px;font:inherit;font-size:14px;color:#153c48;outline:none;transition:border-color .2s,box-shadow .2s}.input-wrap input:focus{border-color:#267d8d;box-shadow:0 0 0 3px #267d8d22}.input-wrap input::placeholder{color:#8797a0}.submit-button{margin-top:27px;width:100%;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:12px;padding:17px 21px;background:#095266;color:#fff;font-size:15px;font-weight:750;cursor:pointer}.submit-button:hover{background:#073e50}.submit-button span{font-size:22px;font-weight:400}.help{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:26px;border-top:1px solid #e5edef;padding-top:24px;font-size:13px}.help a{color:#095266;text-decoration:none;font-weight:750}.help a:hover{text-decoration:underline}.help>span{color:#b6c8cf}.alert{background:#fff3e8;border:1px solid #f2d5b9;border-radius:10px;padding:13px;font-size:13px;color:#8c5028;margin:0 0 20px}@media(max-width:1000px){.login-shell{grid-template-columns:34% 66%}.login-brand{padding:38px 26px}.brand-logo img{width:105px;height:100px}.brand-message h1{font-size:39px}.brand-message p{font-size:15px}.login-panel{padding:30px}.login-card{padding:32px}}@media(max-width:720px){.login-shell{display:block}.login-brand{min-height:0;padding:20px 24px;gap:0}.brand-logo{flex-direction:row;align-items:center;gap:10px}.brand-logo img{width:52px;height:52px}.brand-logo>span{font-size:14px}.brand-message,.brand-benefits{display:none}.login-panel{min-height:calc(100vh - 92px);padding:28px 16px;align-items:flex-start}.login-card{padding:28px 22px;border-radius:18px}.login-card h2{font-size:31px}.help{gap:8px;font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Ajustes de fidelidad a la maqueta aprobada */
.login-brand{padding-top:clamp(42px,5vw,76px);padding-bottom:clamp(42px,5vw,76px)}
.login-brand:before{background:linear-gradient(180deg,rgba(4,49,65,.90),rgba(3,49,64,.74) 55%,rgba(3,53,65,.88)),url('../img/huerto-banner.webp') center/cover no-repeat}
.login-brand:after{width:560px;height:780px;right:-435px;top:-185px;border-width:1.5px;transform:rotate(-28deg)}
.brand-logo img{width:130px;height:106px}.brand-logo>span{font-size:17px;letter-spacing:.23em}
.brand-message h1{letter-spacing:-.045em;margin:21px 0 15px}.brand-message .eyebrow{color:#b4cfd2}
.brand-benefits{gap:25px}.benefit{gap:17px}.benefit-icon{width:40px;display:flex;align-items:center;justify-content:center}.benefit-icon svg{width:30px;height:30px;fill:none;stroke:#b8e49e;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-panel{background:radial-gradient(ellipse at 97% 12%,#e8f5f8 0,transparent 44%),linear-gradient(150deg,#fbfdfe,#eef7f9)}
.login-panel:before{width:280px;height:280px;right:-225px;top:-130px}.login-panel:after{left:-235px;bottom:-195px}
.login-card{width:min(555px,100%);padding:clamp(32px,3vw,46px);box-shadow:0 22px 65px rgba(15,58,70,.095)}
.choice-icon{display:flex;align-items:center}.choice-icon svg{width:20px;height:20px;fill:#1685aa;stroke:#1685aa;stroke-width:1.6;stroke-linejoin:round}.access-option:nth-child(2) .choice-icon svg{fill:none;stroke:#667983}
.input-icon{display:flex;align-items:center}.input-icon svg,.password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.input-wrap input[type=password],.input-wrap input[type=text]#password{padding-right:54px}.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;color:#7f929b;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px}.password-toggle:hover{background:#eef5f6;color:#07536a}.password-toggle:focus-visible{outline:2px solid #278a9d}.password-toggle[aria-pressed=true] svg path:last-child{display:none}
@media(max-width:720px){.login-brand{padding:20px 24px}.brand-logo img{width:52px;height:52px}.login-card{padding:28px 22px}}

/* Distribución aprobada: 60% fotografía / 40% formulario (escritorio). */
@media (min-width: 1001px) {
  .login-shell { grid-template-columns: minmax(0, 60%) minmax(0, 40%); }
  .login-brand { padding-left: clamp(42px, 5.5vw, 96px); padding-right: clamp(42px, 5.5vw, 96px); }
  .login-brand:before { background-position: center center; }
  .login-panel { padding: 36px clamp(18px, 2.5vw, 44px); }
  .login-card { width: min(555px, 100%); padding: clamp(25px, 2.4vw, 40px); }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .login-shell { grid-template-columns: minmax(0, 55%) minmax(0, 45%); }
  .login-panel { padding: 24px 18px; }
  .login-card { padding: 26px 22px; }
}

/* Identidad editorial: mensaje breve y beneficios visibles en el panel fotográfico. */
@media(min-width:1001px){
 .brand-message{max-width:820px}
 .brand-message h1{font-size:clamp(43px,4vw,70px);line-height:1.12;letter-spacing:-.045em}
 .brand-message h1 em{font-style:normal;color:#a1efd0}
 .brand-message .eyebrow{color:#a7e6cf;letter-spacing:.29em}
 .brand-message p{font-size:clamp(17px,1.25vw,21px);color:#f0f7f5}
 .brand-benefits{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:start}
 .benefit{align-items:center;gap:12px;min-width:0}
 .benefit strong{font-size:13px}.benefit small{font-size:12px}
 .login-brand:before{background:linear-gradient(90deg,rgba(3,43,57,.91),rgba(3,51,65,.66) 57%,rgba(3,55,65,.24)),url('../img/huerto-banner.webp') center/cover no-repeat}
}
@media(min-width:721px) and (max-width:1000px){
 .brand-message h1{font-size:clamp(31px,3.5vw,45px)}
 .brand-message h1 em{font-style:normal;color:#a1efd0}
 .brand-message p{font-size:15px}
}

/* Beneficios contrastados sobre la fotografía. */
@media(min-width:721px){
 .brand-benefits{gap:12px}
 .benefit{padding:15px 13px;border:1px solid rgba(209,241,232,.24);border-radius:14px;background:rgba(2,37,49,.70);box-shadow:0 8px 24px rgba(0,20,30,.15);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
 .benefit-icon{flex:0 0 34px}
 .benefit-icon svg{width:30px;height:30px;stroke:#b4f4ac;stroke-width:2.1}
 .benefit strong{color:#fff;line-height:1.35}
 .benefit small{color:#e1f0ef;line-height:1.4}
}
.submit-button{position:relative;gap:12px}
.submit-button .submit-arrow{margin-left:auto}
.submit-spinner{display:none;width:19px;height:19px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:login-spin .75s linear infinite;margin-left:auto;flex:none}
.submit-button.is-loading{cursor:wait;opacity:.92}
.submit-button.is-loading .submit-arrow{display:none}
.submit-button.is-loading .submit-spinner{display:block}
.login-loading-message{font-size:12px;color:#55727c;text-align:center;margin:10px 0 0}
.login-loading-message[hidden]{display:none}
@keyframes login-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.submit-spinner{animation-duration:1.5s}}

/* Rediseño exclusivo del formulario derecho, octubre 2026. */
.login-panel .login-card{border-radius:26px;box-shadow:0 24px 64px rgba(9,58,71,.11);padding:clamp(26px,2.5vw,42px)}
.login-card h2{margin:12px 0 8px;font-size:clamp(31px,2.5vw,42px);line-height:1.13}
.login-card .sub{margin-bottom:24px}
.login-card .access-choice{border-radius:17px;background:#edf2f3;padding:5px;gap:5px;margin-bottom:24px}
.login-card .access-option>span{min-height:49px;border:1.5px solid transparent;border-radius:13px;transition:background .2s,border-color .2s,box-shadow .2s}
.login-card .access-option input:checked+span{border-color:#19a98e;background:#fff;color:#074e60;box-shadow:0 3px 12px rgba(9,79,89,.1)}
.login-card .access-option input:checked+span .choice-icon svg{stroke:#0ba68d;fill:none}
.login-card .choice-icon svg{width:21px;height:21px;fill:none;stroke:#728692;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.login-card .field-label{margin:17px 0 8px;font-size:13px}
.login-card .input-wrap input{min-height:53px;border-radius:13px;padding-top:14px;padding-bottom:14px;transition:border-color .2s,box-shadow .2s}
.login-card .input-wrap input:focus{border-color:#159f98;box-shadow:0 0 0 3px rgba(21,159,152,.12)}
.login-card .input-icon svg,.login-card .password-toggle svg{width:21px;height:21px;stroke-width:1.8}
.login-card .submit-button{min-height:60px;margin-top:27px;border-radius:999px;padding:16px 22px;justify-content:center;background:linear-gradient(110deg,#08788b,#075367);box-shadow:0 9px 20px rgba(6,79,98,.16);font-size:17px;transition:box-shadow .2s,transform .2s,filter .2s}
.login-card .submit-button:hover{background:linear-gradient(110deg,#07899a,#06495e);box-shadow:0 12px 24px rgba(6,79,98,.22);transform:translateY(-1px)}
.login-card .submit-button:active{transform:translateY(0)}
.login-card .submit-button .submit-label{font-size:17px;font-weight:750}
.login-card .submit-button .submit-arrow{position:absolute;right:22px;display:flex;align-items:center;justify-content:center}
.login-card .submit-button .submit-arrow svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-card .submit-button.is-loading .submit-spinner{position:absolute;right:24px;margin:0}
.login-card .help{margin-top:23px;padding-top:21px;gap:14px}
.login-card .help a{display:inline-flex;align-items:center;gap:7px;color:#086276;font-weight:700}
.login-card .help a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.login-card .help .help-separator{height:18px;width:1px;background:#cbdadd}
@media(max-width:720px){.login-panel .login-card{padding:27px 21px}.login-card .help{gap:9px}.login-card .help a{font-size:12px;gap:4px}}

/* Layout de acceso: un solo origen para tamaños, altura y desbordamiento. */
html, body { margin:0; width:100%; min-width:0; }
.login-shell { width:100%; max-width:100%; min-height:100vh; min-height:100dvh; grid-template-columns:minmax(0,60fr) minmax(0,40fr); }
.login-brand, .login-panel { min-width:0; }
/* Las figuras de fondo del panel derecho provocaban el rombo visible. */
.login-panel::before, .login-panel::after { content:none; display:none; }
@media (min-width:1001px) {
  .login-shell { min-height:100dvh; }
  .login-brand {
    min-height:100dvh; padding:clamp(24px,4vh,60px) clamp(42px,5.5vw,96px);
    gap:clamp(12px,2.5vh,26px); overflow:hidden;
  }
  .brand-logo img { width:clamp(96px,8vw,130px); height:clamp(88px,7vw,116px); }
  .brand-message h1 { font-size:clamp(43px,4vw,70px); }
  .login-panel { min-height:100dvh; padding:clamp(18px,3vh,36px) clamp(18px,2.5vw,44px); overflow:hidden; }
  .login-card { max-width:100%; }
}
@media (min-width:721px) and (max-width:1000px) {
  .login-shell { grid-template-columns:minmax(0,55fr) minmax(0,45fr); }
  .login-brand { min-height:100dvh; overflow:hidden; }
  .login-panel { min-height:100dvh; overflow:hidden; }
}
/* Reducir únicamente los espacios verticales cuando la pantalla es baja. */
@media (min-width:721px) and (max-height:800px) {
  .login-brand { padding-top:clamp(18px,3vh,30px); padding-bottom:clamp(18px,3vh,30px); gap:12px; }
  .brand-logo img { height:clamp(64px,10vh,92px); width:auto; max-width:120px; }
  .brand-message h1 { margin:10px 0; font-size:clamp(36px,3.4vw,58px); }
  .brand-accent { margin:12px 0; }
  .brand-benefits { gap:8px; }
  .benefit { padding:9px 11px; }
  .login-panel { padding-top:16px; padding-bottom:16px; }
  .login-panel .login-card { padding:clamp(20px,2vh,30px) clamp(22px,2vw,38px); }
  .login-card .sub { margin-bottom:14px; }
  .login-card .access-choice { margin-bottom:14px; }
  .login-card .field-label { margin-top:12px; }
  .login-card .submit-button { margin-top:18px; }
  .login-card .help { margin-top:16px; padding-top:15px; }
}
/* Pantallas muy bajas: permitir desplazamiento real sin recortar formularios. */
@media (min-width:721px) and (max-height:590px) {
  .login-brand, .login-panel { min-height:590px; }
}
@media (max-width:720px) {
  .login-shell { display:block; width:100%; }
  .login-brand { min-height:0; padding:20px 24px; gap:0; overflow:hidden; }
  .brand-logo img { width:52px; height:52px; }
  .login-panel { min-height:calc(100dvh - 92px); overflow:hidden; }
  .login-panel .login-card { max-width:100%; }
}
