/* Dedicated mobile login at /login. */
.avm-shell, .avm-shell * { box-sizing: border-box; }
.av-mobile-login-page > main { margin: 0; padding: 0; max-width: none; }
.av-mobile-login-page {
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background: #071a2c;
}

.av-mobile-login-page .avm-shell {
    position: relative;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background-color: #071a2c;
    background-image:
        linear-gradient(180deg, rgba(4, 18, 34, .08) 0%, rgba(4, 18, 34, .12) 32%, rgba(4, 18, 34, .28) 62%, rgba(4, 18, 34, .64) 100%),
        url("/assets/avalon/mobile-hero.png");
    background-position: center top, center 18%;
    background-size: cover, cover;
    background-repeat: no-repeat;
}

.av-mobile-login-page .avm-shell::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        radial-gradient(ellipse at 84% 10%, rgba(27, 199, 255, .16), transparent 34%),
        linear-gradient(90deg, rgba(3, 17, 30, .3), transparent 68%);
    pointer-events: none;
}

.avm-brand {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 22px) 21px 0;
}

.avm-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 15px rgba(0, 11, 27, .52);
}

.avm-brand-link img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.avm-brand-link span {
    font-size: 22px;
    font-weight: 760;
    letter-spacing: -.7px;
}

.avm-tagline {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 3px;
    line-height: 1.85;
}

.avm-tagline strong {
    color: #fff;
    font-weight: 760;
}

.avm-tagline-rule {
    display: block;
    width: 37px;
    height: 3px;
    margin-top: 8px;
    border-radius: 99px;
    background: #1fd5ff;
    box-shadow: 0 0 16px rgba(31, 213, 255, .75);
}

.avm-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    width: min(100%, 460px);
    min-height: 0;
    margin: 0 auto;
    padding: 28px 18px calc(12px + env(safe-area-inset-bottom));
}

.avm-account-card {
    padding: 11px;
    border: 1px solid rgba(147, 219, 255, .48);
    border-radius: 18px;
    background: rgba(8, 32, 53, .43);
    box-shadow: 0 18px 45px rgba(0, 7, 18, .32), inset 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.avm-profile-line {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.avm-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: linear-gradient(140deg, #57dfff, #164c84);
    box-shadow: 0 3px 13px rgba(0, 0, 0, .24);
}

.avm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avm-guest-avatar .wp-icon {
    width: 28px;
    height: 28px;
    color: #fff;
}

.avm-user-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.avm-user-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 760;
    letter-spacing: -.3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avm-user-copy small {
    overflow: hidden;
    color: rgba(222, 238, 250, .82);
    font-size: 11px;
    letter-spacing: .2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avm-chevron {
    display: grid;
    width: 27px;
    height: 38px;
    flex: 0 0 27px;
    place-items: center;
    color: #fff;
}

.avm-chevron .wp-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.1;
}

.avm-access-button {
    display: flex;
    width: 100%;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 99px;
    background: linear-gradient(100deg, #28d7f2, #00a9f2);
    box-shadow: 0 8px 22px rgba(0, 174, 236, .25);
    color: #062642;
    font-size: 15px;
    font-weight: 760;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.avm-access-button:active {
    transform: scale(.985);
    filter: brightness(1.04);
}

.avm-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.avm-shortcuts a {
    display: flex;
    min-width: 0;
    min-height: 66px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 3px;
    border: 1px solid rgba(149, 215, 245, .28);
    border-radius: 16px;
    background: rgba(10, 39, 63, .30);
    box-shadow: 0 9px 22px rgba(0, 7, 18, .16);
    color: #f5fbff;
    font-size: 10px;
    font-weight: 580;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.avm-shortcut-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #effaff;
}

.avm-shortcut-icon .wp-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

.avm-promo {
    position: relative;
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 9px 11px;
    overflow: hidden;
    border: 1px solid rgba(109, 208, 247, .4);
    border-radius: 17px;
    background: linear-gradient(105deg, rgba(10, 43, 68, .43), rgba(5, 42, 70, .29));
    box-shadow: 0 14px 30px rgba(0, 7, 18, .19);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.avm-promo-copy {
    min-width: 0;
    flex: 1;
}

.avm-promo-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 760;
    letter-spacing: -.2px;
}

.avm-promo-copy p {
    max-width: 190px;
    margin: 0;
    color: rgba(216, 236, 250, .86);
    font-size: 11px;
    line-height: 1.4;
}

.avm-promo > a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #23cefa;
    border-radius: 99px;
    color: #fff;
    font-size: 12px;
    font-weight: 680;
    text-decoration: none;
    white-space: nowrap;
}

.avm-promo-bars {
    position: absolute;
    right: 9px;
    bottom: 0;
    display: flex;
    height: 28px;
    align-items: flex-end;
    gap: 4px;
    opacity: .38;
    pointer-events: none;
}

.avm-promo-bars i {
    display: block;
    width: 5px;
    border-radius: 2px 2px 0 0;
    background: #10d4ff;
}

.avm-promo-bars i:nth-child(1) { height: 11px; }
.avm-promo-bars i:nth-child(2) { height: 19px; }
.avm-promo-bars i:nth-child(3) { height: 27px; }

.avm-footer {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    color: rgba(216, 236, 250, .66);
    font-size: 10px;
    text-align: center;
}

.avm-footer a {
    color: rgba(235, 246, 255, .8);
    text-decoration: none;
    border-bottom: 1px solid rgba(235, 246, 255, .25);
    padding-bottom: 3px;
}

.avm-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.avm-footer .wp-icon {
    width: 13px;
    height: 13px;
}


@media (max-width: 767px) {
    body.wp-auth-page {
        min-height: 100svh;
        background:
            radial-gradient(ellipse at 80% 0%, rgba(15, 143, 212, .25), transparent 42%),
            linear-gradient(155deg, #06192b, #0b2b46 65%, #06182a);
    }

    .wp-auth-page .wp-public-header {
        max-width: 520px;
        height: 72px;
        margin: 0 auto;
        padding: 12px 19px;
        border-bottom: 0;
    }

    .wp-auth-page .wp-brand {
        width: 154px;
        height: 40px;
    }

    .wp-auth-page .wp-auth-shell {
        display: block;
        max-width: 500px;
        margin: 7px auto 26px;
        padding: 0 17px;
    }

    .wp-auth-page .wp-auth-intro {
        display: none !important;
    }

    .wp-auth-page .wp-auth-card {
        padding: 25px 21px 23px;
        border: 1px solid rgba(135, 214, 250, .3);
        border-radius: 24px;
        background: rgba(8, 32, 53, .79);
        box-shadow: 0 24px 56px rgba(0, 5, 14, .35);
        backdrop-filter: blur(17px);
        -webkit-backdrop-filter: blur(17px);
    }

    .wp-auth-page .wp-auth-card h2 {
        margin-top: 17px;
        color: #fff;
    }

    .wp-auth-page .wp-auth-card > p,
    .wp-auth-page .wp-auth-switch,
    .wp-auth-page .wp-auth-secure {
        color: rgba(222, 238, 250, .76);
    }

    .wp-auth-page .wp-auth-form .wp-input {
        min-height: 50px;
        font-size: 16px;
    }

    .wp-auth-page .wp-auth-options {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 4px 0 17px;
    }

    .wp-auth-page .wp-remember-control {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        gap: 8px;
        color: rgba(233, 245, 255, .83);
        font-size: 12px;
        line-height: 1.35;
    }

    .wp-auth-page .wp-remember-control input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: #11c8f5;
    }

    .wp-auth-page .wp-auth-options > a {
        align-self: flex-start;
    }

    .wp-auth-page .wp-auth-footer {
        padding-top: 0;
        padding-bottom: 24px;
        color: rgba(222, 238, 250, .58);
    }
}

@media (max-width: 380px) {
    .avm-content {
        padding-inline: 13px;
    }

    .avm-account-card {
        padding-inline: 11px;
    }

    .avm-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .avm-user-copy strong {
        font-size: 16px;
    }

    .avm-shortcuts {
        gap: 6px;
    }

    .avm-shortcuts a {
        font-size: 9px;
    }

    .avm-promo {
        gap: 7px;
        padding-inline: 11px;
    }

    .avm-promo-copy strong {
        font-size: 13px;
    }

    .avm-promo-copy p {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avm-access-button {
        transition: none;
    }
}

.avm-account-card {
        overflow: hidden;
        transition: background .2s ease;
    }
    .avm-login-welcome,
    .avm-login-stage {
        animation: avm-login-enter .24s ease both;
    }
    .avm-guest-card [hidden] { display: none !important; }
    .avm-login-stage { padding-top: 3px; }
    .avm-login-step-heading {
        display: flex; flex-direction: column; gap: 4px; margin: 0 0 11px;
    }
    .avm-login-step-heading strong {
        color: #fff; font-size: 17px; font-weight: 760; letter-spacing: -.25px;
    }
    .avm-login-step-heading small {
        color: rgba(222, 238, 250, .78); font-size: 12px; line-height: 1.4;
    }
    .avm-inline-login label:not(.avm-inline-remember) {
        display: block; margin: 0 0 7px; color: rgba(238, 247, 255, .92); font-size: 12px; font-weight: 650;
    }
    .avm-inline-login .wp-input {
        display: block; width: 100%; min-height: 44px; padding: 0 13px;
        border: 1px solid rgba(167, 211, 238, .34); border-radius: 13px; outline: none;
        background: rgba(1, 16, 30, .53); color: #fff; font: inherit; font-size: 16px; box-shadow: none;
    }
    .avm-inline-login .wp-input::placeholder { color: rgba(208, 225, 238, .5); }
    .avm-inline-login .wp-input:focus { border-color: #27d4f4; box-shadow: 0 0 0 3px rgba(39, 212, 244, .14); }
    .avm-login-hint { min-height: 16px; margin: 6px 0 0; color: #ffc6c5; font-size: 11px; }
    .avm-inline-message:not(:empty) {
        margin: 0 0 11px; padding: 9px 11px; border: 1px solid rgba(255, 134, 133, .28);
        border-radius: 11px; background: rgba(185, 54, 54, .13); color: #ffc6c5; font-size: 12px; line-height: 1.4;
    }
    .avm-inline-message.success { border-color: rgba(83, 229, 174, .3); background: rgba(35, 164, 116, .12); color: #b5ffe2; }
    .avm-inline-primary {
        display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: center;
        margin-top: 9px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px;
        background: linear-gradient(100deg, #28d7f2, #00a9f2); box-shadow: 0 7px 18px rgba(0, 174, 236, .2);
        color: #062642; font: inherit; font-size: 14px; font-weight: 760; cursor: pointer;
    }
    .avm-inline-primary:disabled { opacity: .62; cursor: wait; }
    .avm-inline-password-wrap { position: relative; }
    .avm-inline-password-wrap .wp-input { padding-right: 68px; }
    .avm-inline-password-wrap [data-toggle-password] {
        position: absolute; top: 0; right: 8px; height: 100%; border: 0; background: transparent;
        color: #83dcf4; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer;
    }
    .avm-inline-options { display: flex; flex-direction: column; gap: 8px; margin: 11px 0 1px; }
    .avm-inline-remember {
        display: flex; align-items: center; gap: 7px; color: rgba(225, 240, 250, .84); font-size: 11px;
    }
    .avm-inline-remember input { width: 16px; height: 16px; margin: 0; accent-color: #11c8f5; }
    .avm-inline-options a,
    .avm-inline-back {
        width: fit-content; padding: 0; border: 0; background: transparent; color: #8ce5f7;
        font: inherit; font-size: 11px; text-decoration: none; cursor: pointer;
    }
    .avm-inline-back { display: block; margin: 11px auto 0; color: rgba(220, 239, 250, .72); }
    @keyframes avm-login-enter {
        from { opacity: .1; transform: translateY(7px); }
        to { opacity: 1; transform: translateY(0); }
    }

.avm-login-hint:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
    .avm-login-stage, .avm-login-welcome { animation: none; }
}

/* /login: each layout has its own visible surface and forms. */
.av-login-page > .av-mobile-login-page { display: none !important; }
.av-login-page > .av-desktop-login { display: block; }
@media (max-width: 767px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .av-login-page > .av-desktop-login { display: none !important; }
    .av-login-page > .av-mobile-login-page { display: block !important; }
    body.av-login-page { background: #071a2c; }
}

.avm-found-profile{display:flex;gap:12px;align-items:center;margin-bottom:12px}.avm-found-profile .avm-login-step-heading{margin:0;min-width:0}.avm-found-avatar{width:46px;height:46px;flex:0 0 46px}.avm-found-avatar svg{width:24px;height:24px}.avm-found-profile strong{font-size:17px}.avm-inline-primary:disabled{opacity:.7;cursor:wait}
