/* ========== Área do cliente ========== */

.account-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(185, 28, 28, 0.22), transparent 45%),
        radial-gradient(ellipse at 80% 90%, rgba(196, 160, 53, 0.1), transparent 40%),
        #111111;
}

.account-auth-page__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.account-auth-shell {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.account-auth-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.account-auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.account-auth-brand__logo {
    display: inline-flex;
    margin-bottom: 0.85rem;
}

.account-auth-brand__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.account-auth-brand__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--color-gold);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.account-auth-brand h1 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: #fff;
}

.account-auth-brand__lead {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.account-form .form-group {
    margin-bottom: 1rem;
}

.account-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e8e8e8;
}

.account-form .form-group input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.95rem;
}

.account-form .form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(196, 160, 53, 0.18);
}

.account-form__help {
    margin: -0.35rem 0 1rem;
    text-align: right;
}

.account-form__help a,
.account-auth-switch a,
.account-auth-footer a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-weight: 500;
}

.account-form__help a:hover,
.account-auth-switch a:hover,
.account-auth-footer a:hover {
    color: #fff;
}

.account-form__submit {
    width: 100%;
    margin-top: 0.25rem;
}

.account-auth-switch {
    margin: 1.25rem 0 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
}

.account-auth-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.88rem;
}

.account-alert {
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.account-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.account-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.account-area {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.account-nav {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
}

.account-nav__user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.account-nav__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
    color: #111;
    font-weight: 700;
    flex-shrink: 0;
}

.account-nav__user strong {
    display: block;
    color: #111;
    font-size: 0.95rem;
}

.account-nav__user span {
    display: block;
    color: #6b6b6b;
    font-size: 0.78rem;
    word-break: break-all;
}

.account-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.account-nav__links a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.account-nav__links a:hover,
.account-nav__links a.is-active {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

.account-nav__logout {
    margin-top: 0.5rem;
    color: #b91c1c !important;
}

.account-nav__logout:hover,
.account-nav__logout:focus-visible {
    background: rgba(185, 28, 28, 0.08) !important;
    color: #991b1b !important;
}

.account-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 0;
}

.account-panel__header {
    margin-bottom: 1.25rem;
}

.account-panel__header h1 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: #111;
}

.account-panel__header p {
    margin: 0;
    color: #6b6b6b;
    font-size: 0.95rem;
}

.account-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.account-overview__card {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.15rem;
    min-height: 100%;
}

.account-overview__card h2 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    color: #b91c1c;
}

.account-overview__card p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    flex: 1;
}

.account-overview__card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.account-overview__card--wide {
    grid-column: 1 / -1;
}

.account-orders {
    display: grid;
    gap: 0.75rem;
}

.account-order {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.account-order span {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

@media (max-width: 700px) {
    .account-order {
        grid-template-columns: 1fr;
    }
}

.account-overview__list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.75rem;
    flex: 1;
}

.account-overview__list dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.account-overview__list dd {
    margin: 0.15rem 0 0;
    color: #111;
    font-size: 0.95rem;
}

.account-form--panel .form-group label {
    color: #444;
}

.account-form--panel .form-group input,
.account-form--panel .form-group select {
    background: #fff;
    border: 1px solid #d4d4d4;
    color: #111;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    font: inherit;
}

.account-form--panel .form-group select:focus,
.account-form--panel .form-group input:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.account-fieldset {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

.account-fieldset legend {
    padding: 0;
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #b91c1c;
}

.account-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-form__row--zip {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.account-form__hint {
    margin: -0.25rem 0 0;
    font-size: 0.82rem;
    color: #6b6b6b;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-overview {
        grid-template-columns: 1fr;
    }

    .account-form__row,
    .account-form__row--zip {
        grid-template-columns: 1fr;
    }

    .account-nav__links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .account-nav__links a {
        flex: 1 1 auto;
        text-align: center;
    }
}

.account-auth-inpage {
    display: flex;
    justify-content: center;
}

.account-auth-card--store {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e6e3;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.account-auth-brand--store h1 {
    color: #1a1a1a;
}

.account-auth-brand--store .account-auth-brand__lead {
    color: #666;
}

.account-auth-card--store .account-form .form-group label {
    color: #333;
}

.account-auth-card--store .account-form .form-group input {
    background: #fff;
    border: 1px solid #ddd;
    color: #1a1a1a;
}

.account-auth-card--store .account-form__help a,
.account-auth-card--store .account-auth-switch a {
    color: #9b1c1c;
}

.account-auth-switch--store {
    margin-top: 1.25rem;
    text-align: center;
}
