/* The guest sign-in surface is isolated from account endpoints and password recovery. */
body.aa-auth-account #content:has(.aa-account-layout) {
    background: #fdf8f0;
}
body.aa-site-active.aa-auth-account #content.site-content:has(.aa-account-layout) > .ast-container {
    display: block;
    box-sizing: border-box;
    width: min(1296px, calc(100% - 2 * clamp(16px, 5vw, 72px)));
    max-width: none !important;
    padding: clamp(24px, 3vw, 40px) 0 clamp(36px, 4vw, 56px);
    padding-inline: 0 !important;
}
body.aa-auth-account #content:has(.aa-account-layout) #primary {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}
body.aa-auth-account #content .woocommerce:has(> .aa-account-layout) {
    /* The active commerce stylesheet fixes the anonymous wrapper to 36rem. */
    display: block !important;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}
body.aa-auth-account #content .aa-account-intro:has(+ .aa-account-layout),
body.aa-auth-account #content .woocommerce:has(.aa-account-layout) .aa-account-intro {
    margin: 0 0 clamp(18px, 2.8vw, 34px);
    padding: 0;
    border: 0;
    background: transparent;
}
body.aa-auth-account #content .woocommerce:has(.aa-account-layout) .aa-account-intro h1 {
    color: #0a1627;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -.035em;
}
.aa-account-layout {
    display: grid;
    grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
    align-items: start;
    gap: clamp(16px, 2.4vw, 32px);
    color: #0a1627;
}
body.aa-auth-account #content .aa-account-layout .aa-account-campus,
.aa-account-form-card {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    border-radius: 12px;
    padding: clamp(20px, 2.8vw, 36px);
}
body.aa-auth-account #content .aa-account-layout .aa-account-campus {
    display: grid;
    gap: 14px;
    background: #eee8ff;
    justify-content: stretch;
}
body.aa-auth-account #content .aa-account-layout .aa-account-campus a {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: .65em;
    min-height: 44px;
    padding: 0;
    background: transparent;
    color: #421aa0;
    text-decoration: underline;
    text-underline-offset: .18em;
}
body.aa-auth-account #content .aa-account-layout .aa-account-campus a:hover { color: #281069; }
.aa-account-form-card {
    background: white;
    border: 1px solid #ded9e1;
}
.aa-account-form-card .aa-site-title-small { display: none; }
body.aa-auth-account #content .aa-account-form-card .aa-account-site-title { margin: 0 0 16px; }
body.aa-auth-account #content .aa-account-form-card .aa-auth-choice { margin: 0 0 16px; }
body.aa-auth-account #content .aa-account-form-card .aa-auth-choice-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px;
    border: 1px solid #d7d1db;
    padding: 3px;
    border-radius: 8px;
}
body.aa-auth-account #content .aa-account-form-card .aa-auth-choice-links a {
    min-height: 44px;
    margin: 0;
    border: 0;
    padding: 6px 4px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    color: #351681;
    line-height: 1.25;
    font-size: 16px;
}
body.aa-auth-account #content .aa-account-form-card .aa-auth-choice-links a[aria-current] {
    background: #eee8ff;
    color: #371685;
}
.aa-account-form-card .aa-auth-choice-links a[aria-current]::before {
    content: '';
    flex: 0 0 auto;
    width: 10px;
    height: 6px;
    margin: -3px 6px 0 0;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}
body.aa-auth-account #content .aa-account-form-card #customer_login {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}
body.aa-auth-account #content .aa-account-form-card #customer_login::before,
body.aa-auth-account #content .aa-account-form-card #customer_login::after { display: none; }
body.aa-auth-account #content .aa-account-form-card #customer_login > div {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
}
body.aa-auth-account #content .aa-account-form-card #customer_login[data-aa-auth-ready] > div > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    margin: 0;
    padding: 0;
}
body.aa-auth-account #content .aa-account-form-card #customer_login > div > h2:focus-visible {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
}
body.aa-auth-account #content .aa-account-form-card form {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}
body.aa-auth-account #content .aa-account-form-card .form-row { margin: 0 0 12px; }
body.aa-auth-account #content .aa-account-form-card label { color: #101b2c; }
body.aa-auth-account #content .aa-account-form-card label .required { color: #8d2534; }
body.aa-auth-account #content .aa-account-form-card input.input-text { min-height: 46px; }
body.aa-auth-account #content .aa-account-form-card .password-input input { padding-inline-end: 52px; }
body.aa-auth-account #content .aa-account-form-card .password-input { position: relative; display: block; }
body.aa-auth-account #content .aa-account-form-card button.show-password-input {
    position: absolute;
    inset: 0 0 auto auto !important;
    transform: none !important;
    translate: none;
    width: 46px;
    min-width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
}
body.aa-auth-account #content .aa-account-form-card button.show-password-input::after { margin: 0; font-size: 20px; line-height: 1; }
body.aa-auth-account #content .aa-account-form-card button[type=submit] {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    background: #5023bc;
    color: white;
}
body.aa-auth-account #content .aa-account-form-card .lost_password a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #5023bc;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .16em;
}
body.aa-auth-account #content .aa-account-form-card .lost_password { margin: 0; }
body.aa-auth-account #content .aa-account-form-card .form-row:has(#password) { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
    .aa-account-form-card #customer_login[data-aa-auth-ready] > div:not([hidden]) {
        /* Override the earlier public theme reset only for the revealed account panel. */
        animation: aa-compte-panneau 160ms cubic-bezier(.22,1,.36,1) !important;
    }
    @keyframes aa-compte-panneau { from { opacity: .74; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 720px) {
    body.aa-site-active.aa-auth-account #content.site-content:has(.aa-account-layout) > .ast-container { width: calc(100% - 32px); }
    body.aa-auth-account #content .aa-account-form-card .aa-auth-choice-links { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .aa-account-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
    body.aa-auth-account #content .aa-account-layout .aa-account-campus { display: block; padding: 0; }
    body.aa-auth-account #content .aa-account-campus > div {
        position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden;
    }
    body.aa-auth-account #content .aa-account-layout .aa-account-campus a {
        width: 100%; justify-content: space-between; min-height: 48px; padding: 8px 16px; text-decoration: none;
    }
    .aa-account-form-card { padding: 16px; }
    .aa-account-form-card .aa-site-title-wide { display: none; }
    .aa-account-form-card .aa-site-title-small { display: inline; }
    body.aa-auth-account #content .aa-account-form-card .aa-account-site-title { font-size: 1.125rem; margin-bottom: 10px; }
}
