﻿/* SageStore V10.1 - classes isoladas, sem modificar site.css original. */
.site-header .sage-auth-trigger, .site-header .sage-account-dropdown > summary {
    cursor: pointer;
    border: 0;
}

    .site-header .sage-auth-trigger:hover, .site-header .sage-account-dropdown > summary:hover {
        background: #e2f9ff;
    }

.site-header .sage-account-entry {
    position: relative;
}

.site-header .sage-account-dropdown > summary {
    list-style: none;
}

    .site-header .sage-account-dropdown > summary::-webkit-details-marker {
        display: none;
    }

.site-header .sage-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 235px;
    z-index: 1100;
    padding: 9px;
    border-radius: 14px;
    border: 1px solid rgba(130,220,244,.28);
    background: #111f29;
    box-shadow: 0 16px 35px rgba(0,0,0,.5);
}

    .site-header .sage-account-menu > a, .site-header .sage-account-menu > form > button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
        font-size: 12px;
        text-align: left;
        font-weight: 700;
        color: #e7f8ff;
        background: transparent;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

        .site-header .sage-account-menu > a:hover, .site-header .sage-account-menu > form > button:hover {
            background: #1b3744;
        }

    .site-header .sage-account-menu .sage-admin-shortcut {
        color: #91eafe;
    }

.sage-auth-dialog {
    width: min(445px, calc(100vw - 28px));
    max-height: min(95dvh, 800px);
    margin: auto;
    padding: 0;
    background: transparent;
    color: #f5fbff;
    border: 0;
    border-radius: 19px;
    box-shadow: 0 30px 85px rgba(0,0,0,.65);
    overflow-y: auto;
}

    .sage-auth-dialog::backdrop {
        background: rgba(1, 7, 11, .53);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
/* V10.1.2: visual glass — deixa a homepage visível atrás do formulário. */
.sage-auth-shell {
    padding: 27px;
    background: rgba(7, 18, 30, .54);
    border: 1px solid rgba(112, 220, 242, .25);
    border-radius: 19px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sage-auth-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

    .sage-auth-header h2 {
        font-size: 23px;
        line-height: 1.15;
        font-weight: 900;
    }

.sage-auth-x {
    margin-left: auto;
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(150,224,237,.2);
    color: #c9e2e9;
    border-radius: 9px;
    width: 31px;
    height: 31px;
    cursor: pointer;
}

    .sage-auth-x:hover {
        background: #25414d;
    }

.sage-auth-description {
    color: #a8c1cb;
    font-size: 12px;
    margin-bottom: 22px;
}

.sage-auth-dialog form[hidden] {
    display: none;
}

.sage-auth-dialog form label {
    display: block;
    margin: 14px 0 7px;
    font-size: 12px;
    font-weight: 750;
}

.sage-auth-dialog form input {
    display: block;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #35505e;
    padding: 0 12px;
    background: #0a151d;
    color: #f4fcff;
    outline: 0;
    font-size: 13px;
}

    .sage-auth-dialog form input:focus {
        border-color: #7fe9ff;
        box-shadow: 0 0 0 3px rgba(81,209,240,.15);
    }

.sage-auth-dialog .sage-auth-submit {
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    background: linear-gradient(95deg,#9aecff,#60c7e6);
    border: 0;
    border-radius: 10px;
    color: #05202a;
    font-weight: 850;
    cursor: pointer;
}

    .sage-auth-dialog .sage-auth-submit:disabled {
        opacity: .6;
        cursor: wait;
    }

.sage-auth-switch {
    text-align: center;
    font-size: 12px;
    color: #a6bac2;
    margin: 19px 0 0;
}

    .sage-auth-switch button {
        color: #7ee7ff;
        background: none;
        border: 0;
        font-weight: 800;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.sage-auth-hint {
    font-size: 10px;
    line-height: 1.5;
    color: #aac7d1;
    margin-top: 6px;
}

.sage-auth-notice {
    background: rgba(218,73,96,.1);
    border: 1px solid rgba(242,95,119,.42);
    color: #ffb5bf;
    border-radius: 9px;
    padding: 11px;
    font-size: 12px;
    margin-bottom: 15px;
}

    .sage-auth-notice[hidden] {
        display: none;
    }

.sage-profile-page {
    min-height: 65vh;
    padding: 85px 20px;
    display: flex;
    justify-content: center;
}

.sage-profile-card {
    width: min(600px,100%);
    height: fit-content;
    border: 1px solid rgba(110,220,245,.23);
    padding: 30px;
    border-radius: 17px;
    background: #12222d;
}

    .sage-profile-card h1 {
        font-size: 29px;
        margin-bottom: 8px;
    }

    .sage-profile-card > p {
        font-size: 13px;
        color: #aec5cc;
    }

    .sage-profile-card dl {
        margin: 25px 0;
    }

        .sage-profile-card dl > div {
            padding: 14px 0;
            border-bottom: 1px solid rgba(140,215,233,.16);
        }

    .sage-profile-card dt {
        font-size: 11px;
        color: #a7c6d0;
        margin-bottom: 5px;
    }

    .sage-profile-card dd {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

.sage-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

    .sage-profile-actions a, .sage-profile-actions button {
        display: inline-block;
        border: 1px solid rgba(125,220,240,.32);
        border-radius: 9px;
        padding: 11px 14px;
        color: #d9f9ff;
        background: #1b3949;
        font-weight: 750;
        font-size: 12px;
        cursor: pointer;
    }

    .sage-profile-actions button {
        background: #312027;
    }

@media (max-width:480px) {
    .sage-auth-shell {
        padding: 19px;
    }

    .sage-auth-header h2 {
        font-size: 20px;
    }

    .site-header .sage-account-dropdown > summary {
        font-size: 0;
        padding: 10px;
    }

        .site-header .sage-account-dropdown > summary i {
            font-size: 14px;
        }
}

@media (prefers-reduced-motion:reduce) {
    .sage-auth-dialog::backdrop {
        backdrop-filter: none;
    }
}
