/* ============================================
   SAFIR HAIR — Account Dropdown Styles
   Login + Minha Conta
   ============================================ */

/* ---- Dropdown Container ---- */
.account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: -10px;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow: hidden;
    text-align: left;
}

.account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ---- Arrow ---- */
.account-dropdown__arrow {
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #1a3a5c;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* ---- Header ---- */
.account-dropdown__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #1a3a5c, #0d2238);
    color: #fff;
}

.account-dropdown__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid var(--gold-primary, #c9a84c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--gold-primary, #c9a84c);
    flex-shrink: 0;
}

.account-dropdown__avatar--logged {
    background: var(--gold-primary, #c9a84c);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-display, 'Playfair Display', serif);
}

.account-dropdown__greeting {
    line-height: 1.3;
    text-align: left;
}

.account-dropdown__welcome {
    font-size: 0.75rem;
    opacity: 0.65;
    margin: 0;
}

.account-dropdown__brand {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    color: var(--gold-primary, #c9a84c);
}

/* ---- Body ---- */
.account-dropdown__body {
    padding: 8px 0;
}

/* ---- Login Form ---- */
.account-dropdown__form {
    padding: 16px 20px 12px;
}

.account-dropdown__field {
    margin-bottom: 12px;
}

.account-dropdown__field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-dropdown__field input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0ddd6;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #333;
    background: #fafaf8;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.account-dropdown__field input:focus {
    border-color: var(--gold-primary, #c9a84c);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.account-dropdown__field input::placeholder {
    color: #bbb;
}

.account-dropdown__login-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #1a3a5c, #0d2238);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.account-dropdown__login-btn:hover {
    background: linear-gradient(135deg, var(--gold-primary, #c9a84c), #b08d3a);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.account-dropdown__forgot {
    text-align: center;
    margin: 10px 0 4px;
    font-size: 0.75rem;
}

.account-dropdown__forgot a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.account-dropdown__forgot a:hover {
    color: var(--gold-primary, #c9a84c);
}

.account-dropdown__info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f8f6f1;
    border-radius: 8px;
    font-size: 0.6875rem;
    color: #888;
    line-height: 1.4;
}

.account-dropdown__info i {
    color: var(--gold-primary, #c9a84c);
    font-size: 0.75rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ---- Menu Item ---- */
.account-dropdown__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
    text-align: left;
}

.account-dropdown__item:hover {
    background: #f8f6f1;
}

.account-dropdown__item:hover>i {
    color: var(--gold-primary, #c9a84c);
    transform: scale(1.1);
}

.account-dropdown__item>i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #1a3a5c;
    flex-shrink: 0;
    transition: all 0.2s;
}

.account-dropdown__item--logout>i {
    background: #fef0f0;
    color: #c0392b;
}

.account-dropdown__item--logout:hover>i {
    color: #e74c3c !important;
    background: #fde6e6;
}

.account-dropdown__item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a3a5c;
    line-height: 1.2;
    text-align: left;
}

.account-dropdown__item--logout .account-dropdown__item-title {
    color: #c0392b;
}

.account-dropdown__item-desc {
    display: block;
    font-size: 0.6875rem;
    color: #999;
    line-height: 1.3;
    margin-top: 2px;
    text-align: left;
}

/* ---- Divider ---- */
.account-dropdown__divider {
    height: 1px;
    background: #f0ede8;
    margin: 4px 20px;
}

/* ---- Toast ---- */
.account-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #1a3a5c, #0d2238);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .account-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        max-height: 85vh;
        overflow-y: auto;
    }

    .account-dropdown.open {
        transform: translateY(0);
    }

    .account-dropdown__arrow {
        display: none;
    }

    .account-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}