/* Login de Roundcube con el aspecto de la portada de wooweb.es (lo genera el plugin wooweb_login) */
body { margin: 0; background: #073a8e; }

.ww-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0948b3 0%, #073a8e 100%);
    color: #fff;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ww-page * { box-sizing: border-box; }

/* Cabecera, como la de la web */
.ww-top { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ww-brand img { display: block; height: 40px; width: auto; }
.ww-nav { display: flex; align-items: center; gap: 28px; }
.ww-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.ww-nav a:hover { text-decoration: underline; }
/* iconos de Ayuda y Solicitar llamada, como en la cabecera de wooweb.es */
.ww-nav a.ww-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; opacity: .95; transition: opacity .15s, background .15s; }
.ww-nav a.ww-ico:hover { opacity: 1; background: rgba(255, 255, 255, .14); text-decoration: none; }
.ww-nav a.ww-ico svg { display: block; }
.ww-nav a:focus-visible, .ww-brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* Bloque principal: texto a la izquierda, formulario a la derecha */
.ww-hero { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 24px 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 35px 64px; align-items: end; align-content: center; }   /* filas sin estirar (el conjunto se centra en la pantalla); texto y tarjeta alineados por abajo */
.ww-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 9px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; background: rgba(255, 255, 255, .08); font-weight: 600; font-size: 14px; }
.ww-badge:before { content: "\2713"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #05a32d; color: #fff; font-size: 11px; font-weight: 800; }
.ww-copy h2 { margin: 22px 0; color: #fff; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.ww-copy p { max-width: 560px; margin: 0 0 28px; color: #e3ebfb; font-size: 19px; line-height: 1.65; }
.ww-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; color: #e3ebfb; font-size: 15px; }
.ww-feats li:before { content: "\2713"; margin-right: 8px; color: #3ddc6a; font-weight: 800; }

/* Tarjeta del formulario (el #login-form de Larry) */
.ww-page #login-form { position: static; width: auto; margin: 0; }
.ww-page #login-form .box-inner { width: auto; margin: 0; padding: 34px 32px 30px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(3, 20, 60, .35); color: #2d3748; }
.ww-page #login-form #logo { display: none; }
.ww-card-title { margin: 0 0 4px; color: #1a202c; font-size: 24px; font-weight: 800; }
.ww-card-sub { margin: 0 0 22px; color: #718096; font-size: 14px; }
.ww-page #login-form form table,
.ww-page #login-form form tbody,
.ww-page #login-form form tr,
.ww-page #login-form form td { display: block; width: auto; padding: 0; }
.ww-page #login-form td.title { padding: 0 0 6px; text-align: left; white-space: normal; color: #4a5568; font-size: 13px; font-weight: 600; }
.ww-page #login-form td.input { padding: 0 0 16px; }
.ww-page #login-form input[type="text"],
.ww-page #login-form input[type="email"],
.ww-page #login-form input[type="password"] {
    width: 100%; padding: 12px 14px; border: 1px solid #d6deea; border-radius: 8px; background: #f7f9fc;
    box-shadow: none; color: #1a202c; font: 15px Inter, system-ui, sans-serif;
}
.ww-page #login-form input[type="text"]:focus,
.ww-page #login-form input[type="email"]:focus,
.ww-page #login-form input[type="password"]:focus { border-color: #0948b3; background: #fff; box-shadow: 0 0 0 3px rgba(9, 72, 179, .15); outline: none; }
.ww-page #login-form p.formbuttons { margin: 6px 0 0; text-align: left; }
.ww-page #login-form .button.mainaction {
    width: 100%; padding: 13px; border: 0; border-radius: 8px; background: #05a32d; color: #fff; text-shadow: none;
    box-shadow: 0 4px 12px rgba(5, 163, 45, .3); font: 700 16px Inter, system-ui, sans-serif; cursor: pointer;
}
.ww-page #login-form .button.mainaction:hover,
.ww-page #login-form .button.mainaction:focus { background: #048a26; }
.ww-page #login-form .button.mainaction:active { background: #037020; }
.ww-page #login-form .button.mainaction:focus-visible { outline: 3px solid rgba(9, 72, 179, .35); outline-offset: 2px; }

/* Mensajes (error de acceso, cargando...) y pie */
.ww-page #login-form .box-bottom { margin: 0; padding: 0; }   /* sin mensaje no ocupa sitio */
.ww-page #login-form #message { min-height: 0; padding: 0; }
.ww-page #login-form #message:not(:empty) { margin-top: 12px; }
.ww-page #login-form #message div { background-color: #fff; border-radius: 8px; padding: 8px 14px 8px 30px; box-shadow: 0 4px 14px rgba(3, 20, 60, .25); }
.ww-page #bottomline { display: none; }   /* "Wooweb.es · Obtener soporte": no hace falta en este diseño */

/* Casilla "Recordar esta cuenta en este navegador" */
.ww-page .ww-remember { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #4a5568; font-size: 13px; cursor: pointer; }
.ww-page .ww-remember input { width: 16px; height: 16px; margin: 0; accent-color: #0948b3; }

/* Accesos recientes en este navegador (los pinta wooweb_login.js) */
/* fila a todo el ancho del bloque principal, bajo el texto y la tarjeta */
/* Fila centrada bajo el texto y la tarjeta, con accesos pequeños tipo "acceso directo" del navegador */
.ww-page #ww-recent { grid-column: 1 / -1; margin-top: 0; text-align: center; }
.ww-page .ww-recent-title { margin: 0 0 12px; color: #c9d6f0; font-size: 12px; font-weight: 600; }
.ww-page .ww-recent-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ww-page .ww-acc { position: relative; width: 88px; }
.ww-page .ww-acc button { margin: 0; border: 0; background: none; box-shadow: none; text-shadow: none; font: inherit; cursor: pointer; }
.ww-page .ww-acc-main { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 4px 2px; border-radius: 10px; color: #fff; }
.ww-page .ww-acc-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 7px; border-radius: 14px; background: rgba(255, 255, 255, .9); transition: background .15s, transform .15s; }
.ww-page .ww-acc-main:hover .ww-acc-ic { background: #fff; transform: translateY(-2px); }
.ww-page .ww-acc-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 17px; font-weight: 700; }
.ww-page .ww-acc-name,
.ww-page .ww-acc-dom { display: block; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-page .ww-acc-name { color: #fff; font-size: 12px; font-weight: 500; }
.ww-page .ww-acc-dom { color: #b9c9ea; font-size: 11px; }
/* la X aparece en la esquina del cuadrado al pasar el raton (siempre visible en pantallas tactiles) */
.ww-page .ww-acc .ww-acc-x { position: absolute; top: -2px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: #fff; color: #4a5568; font-size: 14px; line-height: 1; box-shadow: 0 2px 6px rgba(3, 20, 60, .3); opacity: 0; transition: opacity .15s; }
.ww-page .ww-acc:hover .ww-acc-x, .ww-page .ww-acc:focus-within .ww-acc-x { opacity: 1; }
.ww-page .ww-acc .ww-acc-x:hover { background: #dc2626; color: #fff; }
@media (hover: none) { .ww-page .ww-acc .ww-acc-x { opacity: 1; } }
.ww-page .ww-acc button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Tablet y movil: una columna, el formulario primero */
@media (max-width: 900px) {
    .ww-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 12px; }
    .ww-page #login-form { order: -1; width: 100%; max-width: 460px; margin: 0 auto; }
    .ww-page #ww-recent { order: -1; width: 100%; max-width: 460px; margin: -16px auto 0; }   /* justo bajo el formulario */
    .ww-copy { text-align: center; }
    .ww-copy p { margin-left: auto; margin-right: auto; font-size: 17px; }
    .ww-feats { justify-content: center; }
    .ww-nav a:not(.ww-ico) { display: none; }   /* en movil solo quedan los iconos */
    .ww-nav { gap: 12px; }
}
@media (max-width: 480px) {
    .ww-top { padding: 14px 16px; }
    .ww-brand img { height: 30px; }
    .ww-hero { padding: 8px 16px 40px; }
    .ww-page #login-form .box-inner { padding: 26px 20px 22px; }
    .ww-copy h2 { font-size: 30px; }
    /* 4 accesos por fila en un movil de ~390px */
    .ww-page .ww-acc { width: 78px; }
    .ww-page .ww-acc-ic { width: 58px; height: 58px; }
    .ww-page .ww-acc-name, .ww-page .ww-acc-dom { max-width: 74px; }
    .ww-page .ww-acc .ww-acc-x { right: 2px; }
}
