/* =============================================
   Home/Login — rediseño visual
   Página standalone (Layout = null), CSS autocontenido.
   ============================================= */

* { box-sizing: border-box; }

body.ae-login-body {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    font-family: 'Public Sans', sans-serif;
    display: flex;
    flex-direction: column;
}
.ae-login-page-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ae-login-card {
    width: 100%;
    flex: 1;
    min-height: 100vh;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ── Panel izquierdo ── */
.ae-login-aside {
    min-width: 0;
    background: linear-gradient(180deg, #eaf2ff 0%, #f5f8fe 100%);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ae-login-illustration {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 32px;
    align-self: center;
}
.ae-login-illustration img {
    width: 100%;
    height: auto;
    display: block;
}
.ae-login-aside-content {
    max-width: 480px;
    margin: 0 auto;
}
.ae-login-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #2564BF;
    margin: 0 0 16px;
    text-align: left;
}
.ae-login-subheadline {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 27px;
    color: #001A3F;
    margin: 0;
    text-align: left;
}
.ae-login-aside-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 32px auto 0;
    max-width: 480px;
}

/* En monitores grandes, el bloque se desplaza a la derecha manteniendo
   siempre el mismo ancho que la ilustración (misma caja = mismo borde). */
@media (min-width: 1300px) {
    .ae-login-aside-content,
    .ae-login-aside-footer {
        margin-left: 100px;
        margin-right: auto;
    }
}
.ae-login-aside-footer img {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}
.ae-login-aside-footer span {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #001A3F;
}

/* ── Panel derecho ── */
.ae-login-main {
    min-width: 0;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ae-login-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
}
.ae-login-brand img {
    height: 88px;
    width: auto;
}
.ae-login-form-wrap {
    max-width: 500px;
    width: 100%;
}
.ae-login-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #001A3F;
    margin: 0 0 10px;
}
.ae-login-subtitle {
    font-family: 'Public Sans', sans-serif;
    font-size: 17px;
    color: #6b7a99;
    margin: 0 0 34px;
}

.ae-login-field {
    margin-bottom: 22px;
}
.ae-login-label {
    display: block;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #001A3F;
    margin-bottom: 8px;
}
/* Escala el ".frm-input" real (usado en Miembros/Create) más grande solo
   dentro del formulario de login. */
.ae-login-form-wrap .frm-input {
    height: 54px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
}

.ae-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.ae-login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    color: #001A3F;
    cursor: pointer;
    user-select: none;
}
.ae-login-remember input {
    width: 18px;
    height: 18px;
    accent-color: #2564BF;
    cursor: pointer;
}
.ae-login-forgot {
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2564BF;
    text-decoration: none;
}
.ae-login-forgot:hover { text-decoration: underline; }

.ae-login-submit {
    width: 100%;
    height: 56px;
    background: #2564BF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.18s;
}
.ae-login-submit:hover { background: #1d4f96; }

.ae-login-signup {
    text-align: center;
    margin-top: 24px;
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    color: #6b7a99;
}
.ae-login-signup a {
    color: #2564BF;
    font-weight: 600;
    text-decoration: none;
}
.ae-login-signup a:hover { text-decoration: underline; }

.ae-login-iso {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #F8F9FE;
    border: 1px solid #C7CDD5;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 30px;
    align-items: center;
}
.ae-login-iso-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.ae-login-iso p {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 140%;
    letter-spacing: 0%;
    color: #6b7a99;
}
.ae-login-iso strong { color: #001A3F; }

@media (max-width: 900px) {
    .ae-login-card { grid-template-columns: 1fr; }
    .ae-login-aside { display: none; }
    .ae-login-main { padding: 40px 28px; }
}

