/* La portada de OESE CBA (login), segun el diseño de marketing y la identidad
   de Octopus Energy España: Montserrat y los colores de marca. */
:root {
    --siphon: #0D0030;        /* cabecera y tarjeta */
    --hemocyanin: #18004A;    /* fondo */
    --ink: #5840FF;           /* bordes */
    --soho-lights: #F05DFB;   /* boton y acentos */
    --voltage: #06F0FB;       /* enlaces */
    --ice: #FCFFFF;           /* texto */
    --dusty-sky: #DCDDFF;     /* texto secundario */
    --purple-haze: #A49FC6;   /* texto discreto */
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    background: var(--hemocyanin);
    color: var(--ice);
    font-family: 'Montserrat', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portada-ancho { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Cabecera */
.portada-cabecera { background: var(--siphon); }
.portada-cabecera-fila { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.portada-logo { height: 32px; width: auto; display: block; }
.portada-ayuda { color: var(--soho-lights); font-weight: 600; text-decoration: none; }
.portada-ayuda:hover { text-decoration: underline; }

/* Cuerpo: que es esto a la izquierda, el acceso a la derecha */
.portada-cuerpo {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 48px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}
.portada-intro h1 { font-size: 28px; font-weight: 600; margin: 0 0 24px; }
.portada-intro p { font-size: 17px; line-height: 1.7; color: var(--dusty-sky); margin: 0 0 24px; max-width: 640px; }
.portada-mascota { width: 260px; max-width: 60%; height: auto; display: block; }

.portada-acceso {
    background: var(--siphon);
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 32px;
}
.portada-acceso h2 { font-size: 24px; font-weight: 600; margin: 0 0 20px; }
.portada-ayuda-texto { font-size: 14px; line-height: 1.6; color: var(--dusty-sky); margin: 0 0 20px; }
.portada-acceso label { display: block; font-size: 12px; font-weight: 500; margin: 0 0 8px 4px; }

.portada-campo {
    width: 100%;
    height: 58px;
    background: var(--siphon);
    border: 2px solid var(--ink);
    border-radius: 8px;
    color: var(--ice);
    font: 500 17px 'Montserrat', system-ui, sans-serif;
    padding: 0 16px;
    margin-bottom: 20px;
    outline: none;
}
.portada-campo::placeholder { color: var(--purple-haze); }
.portada-campo:focus { border-color: var(--voltage); }

.portada-clave { position: relative; }
.portada-clave .portada-campo { padding-right: 52px; }
.portada-ojo {
    position: absolute; top: 0; right: 4px; height: 58px; width: 44px;
    background: none; border: 0; color: var(--soho-lights); font-size: 20px; cursor: pointer;
}

.portada-entrar {
    width: 100%;
    height: 64px;
    background: var(--soho-lights);
    border: 0;
    border-radius: 8px;
    color: var(--siphon);
    font: 600 18px 'Montserrat', system-ui, sans-serif;
    cursor: pointer;
    transition: opacity .15s;
}
.portada-entrar:hover { opacity: .88; }
.portada-entrar:focus-visible { outline: 3px solid var(--voltage); outline-offset: 2px; }

.portada-olvido { text-align: center; margin-top: 24px; }
.portada-olvido a, .portada-contacto a { color: var(--voltage); font-weight: 600; }
.portada-acceso hr { border: 0; border-top: 2px solid rgba(88, 64, 255, .35); margin: 24px 0; }
.portada-contacto { font-size: 14px; line-height: 1.6; color: var(--dusty-sky); margin: 0; }

/* Avisos: sin rojo, como pide la marca (Soho Lights y el texto) */
.portada-aviso {
    border: 1px solid var(--soho-lights);
    background: rgba(240, 93, 251, .12);
    color: var(--ice);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}
.portada-aviso i { color: var(--soho-lights); }
.portada-aviso-ok { border-color: var(--voltage); background: rgba(6, 240, 251, .1); }

/* Pie */
.portada-pie { padding: 40px 0 48px; }
.portada-pie-enlaces { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.portada-pie-enlaces a { color: var(--ice); font-weight: 600; text-decoration: none; }
.portada-pie-enlaces a:hover { text-decoration: underline; }
.portada-legal { font-size: 12px; color: var(--dusty-sky); }

/* Movil: una columna, el acceso primero */
@media (max-width: 900px) {
    .portada-cuerpo { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
    .portada-acceso { order: -1; padding: 24px; }
    .portada-mascota { width: 180px; }
}
