:root {
    --a-bg: #f4f7fb;
    --a-surface: #ffffff;
    --a-border: #e2e8f0;
    --a-text: #1e293b;
    --a-muted: #64748b;
    --a-primary: #2563eb;
    --a-primary-hover: #1d4ed8;
    --a-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --a-radius-xl: 24px;
    --a-radius-lg: 16px;
    --a-max-width: 1280px;
    --a-card-width: 360px;
    --a-topbar-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body.a-page {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--a-text);
    background: var(--a-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.a-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.a-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--a-border);
    padding: 0 16px;
}

.a-topbar-inner {
    max-width: var(--a-max-width);
    min-height: var(--a-topbar-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.a-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.a-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.a-brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--a-text);
}

.a-brand-subtitle {
    font-size: 0.9rem;
    color: var(--a-muted);
    font-weight: 400;
}

.a-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 28px 16px;
}

.a-main-inner {
    width: 100%;
    max-width: var(--a-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.a-card-shell {
    width: 100%;
    max-width: var(--a-card-width);
}

.a-surface {
    background: var(--a-surface);
    border-radius: var(--a-radius-xl);
    box-shadow: var(--a-shadow);
    padding: 32px 30px;
    border: 1px solid var(--a-border);
}

.a-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--a-border);
    background: rgba(255, 255, 255, 0.76);
}

.a-footer-inner {
    max-width: var(--a-max-width);
    margin: 0 auto;
    text-align: center;
}

.a-footer-copyright {
    color: var(--a-muted);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.a-footer-location {
    color: var(--a-muted);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
}

.a-footer-separator {
    color: var(--a-border);
    font-weight: 300;
}

.a-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    :root {
        --a-card-width: 500px;
    }

    .a-surface {
        padding: 30px 26px;
    }
}

@media (max-width: 640px) {
    :root {
        --a-topbar-height: 70px;
        --a-card-width: 65%;
        --a-radius-xl: 20px;
    }

    .a-topbar {
        padding: 0 12px;
    }

    .a-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .a-brand-title {
        font-size: 1.4rem;
    }

    .a-brand-subtitle {
        font-size: 0.8rem;
    }

    .a-main {
        padding: 16px 12px;
        align-items: flex-start;
    }

    .a-surface {
        padding: 24px 18px;
    }

    .a-footer {
        padding: 16px 12px;
    }

    .a-footer-copyright {
        font-size: 0.8rem;
    }

    .a-footer-location {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 2px;
    }

    .a-footer-separator {
        display: none;
    }
}
/* ==========================================================================
   EY_AUTH_RESPONSIVE_ALL_VIEWS_V1_BASE
   Mobile-first layout unificado para todas las vistas Auth.
   ========================================================================== */

:root {
    --a-card-width: 440px;
    --a-topbar-height: 64px;
    --a-page-pad-x: 16px;
    --a-page-gap: 14px;
}

html {
    min-height: 100%;
    background: #eef4ff;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 50% -15%, rgba(37, 99, 235, 0.13), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fd 58%, #eef4fb 100%);
}

body.a-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 50% -15%, rgba(37, 99, 235, 0.13), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fd 58%, #eef4fb 100%);
}

.a-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.a-topbar {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.a-topbar-inner {
    min-height: var(--a-topbar-height);
}

.a-main {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        clamp(18px, 4vh, 38px)
        max(var(--a-page-pad-x), env(safe-area-inset-right))
        8px
        max(var(--a-page-pad-x), env(safe-area-inset-left));
}

.a-main-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.a-card-shell {
    width: min(100%, var(--a-card-width));
    max-width: var(--a-card-width);
    margin: 0 auto;
}

.a-footer {
    flex: 0 0 auto;
    margin-top: var(--a-page-gap);
    padding:
        10px
        max(14px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom))
        max(14px, env(safe-area-inset-left));
    border-top: 0;
    background: transparent;
}

.a-footer-inner {
    max-width: 720px;
}

.a-footer-copyright {
    margin-bottom: 2px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.a-footer-location {
    font-size: 0.74rem;
    line-height: 1.35;
    gap: 2px 8px;
}

@media (max-width: 640px) {
    :root {
        --a-card-width: 100%;
        --a-topbar-height: 58px;
        --a-page-pad-x: 14px;
        --a-page-gap: 8px;
        --a-radius-xl: 18px;
    }

    .a-topbar {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .a-logo,
    .a-logo-emoji {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .a-brand {
        gap: 9px;
    }

    .a-brand-title {
        font-size: 1.18rem;
        line-height: 1.1;
    }

    .a-brand-subtitle {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .a-main {
        align-items: center;
        padding-top: 14px;
        padding-bottom: 4px;
    }

    .a-footer {
        margin-top: 6px;
        padding-top: 8px;
    }

    .a-footer-location {
        flex-direction: row;
        gap: 2px 6px;
    }

    .a-footer-separator {
        display: inline;
    }
}

@media (max-width: 420px) {
    :root {
        --a-page-pad-x: 12px;
    }

    .a-footer-location {
        flex-direction: column;
        gap: 1px;
    }

    .a-footer-separator {
        display: none;
    }
}

@media (max-height: 740px) {
    .a-main {
        padding-top: 10px;
        padding-bottom: 2px;
    }

    .a-footer {
        margin-top: 4px;
        padding-top: 6px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Standalone Auth documents that load the shared Auth assets. */
body > .container {
    width: min(100% - 24px, 440px);
    margin: 14px auto 8px;
}

body > .container .card,
body > .card {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

body > .container .footer,
body > .card .footer {
    margin-top: 14px;
    padding-top: 10px;
}
