
/* =========================================
   BIRTHDAY STUDIO v2.0
   CREATOR ACCOUNT STYLESHEET
   Version: 1.0.0
========================================= */


/* =========================================
   1. ACCOUNT CARD
========================================= */

.account-card {

    width: 100%;

    padding: 24px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    box-sizing: border-box;

    color: var(--text-primary);

    font-family: var(--font-family);

}


/* =========================================
   2. ACCOUNT PROFILE
========================================= */

.account-profile {

    display: flex;

    align-items: center;

    gap: 16px;

    min-width: 0;

}


.account-avatar {

    width: 56px;

    height: 56px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    background: var(--accent-soft);

    border: 1px solid var(--border);

    border-radius: 50%;

    font-size: 27px;

    user-select: none;

}


.account-profile-info {

    flex: 1;

    min-width: 0;

}


.account-profile-info h3 {

    margin: 0 0 6px;

    font-size: 17px;

    font-weight: 650;

    line-height: 1.4;

    color: var(--text-primary);

}


.account-profile-info p {

    margin: 0 0 7px;

    font-size: 13px;

    line-height: 1.5;

    color: var(--text-secondary);

    overflow-wrap: anywhere;

}


/* =========================================
   3. AUTHENTICATION STATUS
========================================= */

.account-status {

    display: inline-block;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.5;

    color: var(--text-muted);

}


.account-status[data-status="success"] {

    color: var(--success);

}


.account-status[data-status="error"] {

    color: var(--danger);

}


/* =========================================
   4. ACCOUNT DIVIDER
========================================= */

.account-divider {

    width: 100%;

    height: 1px;

    margin: 22px 0;

    background: var(--border);

}


/* =========================================
   5. ACCOUNT DETAILS
========================================= */

.account-details {

    display: flex;

    flex-direction: column;

    gap: 18px;

    margin-bottom: 24px;

}


.account-detail-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    font-size: 14px;

    line-height: 1.5;

}


.account-detail-row > span {

    color: var(--text-secondary);

}


.account-detail-row > strong {

    color: var(--text-primary);

    font-weight: 600;

    text-align: right;

}


.account-detail-row
strong[data-status="success"] {

    color: var(--success);

}


.account-detail-row
strong[data-status="error"] {

    color: var(--danger);

}


/* =========================================
   6. ACCOUNT ERROR MESSAGE
========================================= */

.account-error {

    padding: 12px 14px;

    margin-bottom: 16px;

    background: rgba(239, 114, 114, 0.10);

    border: 1px solid
        rgba(239, 114, 114, 0.30);

    border-radius: var(--radius-sm);

    color: var(--danger);

    font-size: 13px;

    line-height: 1.6;

    overflow-wrap: anywhere;

}


.account-error[hidden] {

    display: none !important;

}


/* =========================================
   7. LOGOUT BUTTON
========================================= */

.account-logout-button {

    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 12px 16px;

    background: transparent;

    border: 1px solid
        rgba(239, 114, 114, 0.55);

    border-radius: var(--radius-md);

    color: var(--danger);

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;

    cursor: pointer;

    transition:

        background var(--transition),

        border-color var(--transition),

        opacity var(--transition),

        transform var(--transition);

}


.account-logout-button svg {

    flex-shrink: 0;

}


.account-logout-button:active:not(:disabled) {

    transform: scale(0.98);

    background: rgba(239, 114, 114, 0.10);

}


.account-logout-button:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}


.account-logout-button[aria-busy="true"] {

    cursor: wait;

}


.account-logout-button:focus-visible {

    outline: 2px solid var(--danger);

    outline-offset: 3px;

}


/* =========================================
   8. LOGOUT LOADING SPINNER
========================================= */

.account-spinner {

    width: 17px;

    height: 17px;

    flex-shrink: 0;

    box-sizing: border-box;

    border: 2px solid
        rgba(239, 114, 114, 0.25);

    border-top-color: var(--danger);

    border-radius: 50%;

    animation:

        accountSpinnerRotate 750ms linear infinite;

}


.account-spinner[hidden] {

    display: none !important;

}


/* =========================================
   9. SECURITY NOTE
========================================= */

.account-security-note {

    margin: 14px 0 0;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.6;

    text-align: center;

}


/* =========================================
   10. DESKTOP HOVER INTERACTIONS
========================================= */

@media (hover: hover) and (pointer: fine) {

    .account-logout-button:hover:not(:disabled) {

        background:
            rgba(239, 114, 114, 0.10);

        border-color: var(--danger);

    }

}


/* =========================================
   11. ANIMATIONS
========================================= */

@keyframes accountSpinnerRotate {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


/* =========================================
   12. LIGHT THEME CONTRAST
========================================= */

[data-theme="light"]
.account-status[data-status="success"],

[data-theme="light"]
.account-detail-row strong[data-status="success"] {

    color: #237a50;

}


[data-theme="light"]
.account-status[data-status="error"],

[data-theme="light"]
.account-detail-row strong[data-status="error"],

[data-theme="light"]
.account-error,

[data-theme="light"]
.account-logout-button {

    color: #b42332;

}


/* =========================================
   13. SMALL MOBILE SCREENS
========================================= */

@media (max-width: 380px) {

    .account-card {

        padding: 18px;

    }

    .account-profile {

        gap: 12px;

    }

    .account-avatar {

        width: 48px;

        height: 48px;

        font-size: 23px;

    }

    .account-profile-info h3 {

        font-size: 16px;

    }

    .account-profile-info p {

        font-size: 12px;

    }

    .account-detail-row {

        gap: 10px;

        font-size: 13px;

    }

    .account-divider {

        margin: 18px 0;

    }

}


/* =========================================
   14. REDUCED MOTION SUPPORT
========================================= */

@media (prefers-reduced-motion: reduce) {

    .account-logout-button {

        transition: none;

    }

    .account-logout-button:active {

        transform: none;

    }

    .account-spinner {

        animation: none;

    }

}
