/* ---------------------------------------------------------------------------
   Your account: the delete page.

   The shell, the card and the colours come from _base.css and the two chrome
   sheets the build links in, so this file only holds what is particular to
   this page: the three states, the confirmation field, and a delete button
   that has to look like what it is.
   --------------------------------------------------------------------------- */

.account-lead {
    margin: 0 0 1.25rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Shown until /api/auth/me answers, so the card is never a blank box. */
.account-spinner {
    width: 26px;
    height: 26px;
    margin: 0.5rem 0 0.25rem;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--linkedin-color);
    border-radius: 50%;
    animation: account-spin 0.9s linear infinite;
}

@keyframes account-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-state h2 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: var(--dark-gray);
}

.account-state p {
    margin: 0 0 0.9rem;
    line-height: 1.55;
}

/* The address is the one thing on the page that names the visitor, so it is
   the one thing allowed to be bold. */
.account-who {
    word-break: break-all;
}

.account-who strong {
    color: var(--dark-gray);
}

/* What goes and what stays. Two lists in one, told apart by the mark. */
.account-list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.account-list li {
    position: relative;
    margin: 0 0 0.5rem;
    padding-left: 1.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-gray);
}

.account-list li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.55em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: var(--dark-gray);
}

/* Removed (red) or kept (green). Scoped with `li.` so they beat the grey above:
   one class alone loses to `.account-list li::before`. */
.account-list li.account-list__gone::before {
    background-color: var(--error);
}

.account-list li.account-list__kept::before {
    background-color: #1c7c48;
}

.account-confirm-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.account-confirm {
    box-sizing: border-box;
    width: 100%;
    max-width: 24rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #cfd3e6;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    font-size: 0.95rem;
}

.account-confirm:focus {
    outline: none;
    border-color: var(--linkedin-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.15);
}

.account-status {
    min-height: 1.1rem;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.account-status.is-error {
    color: var(--error);
    font-weight: 600;
}

.account-button {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.7rem 1.1rem;
    border: none;
    border-radius: 10px;
    background-color: var(--dark-gray);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.account-button:hover {
    background-color: #555;
}

.account-button:focus-visible {
    outline: 2px solid var(--linkedin-color);
    outline-offset: 2px;
}

.account-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-button[disabled]:hover {
    background-color: var(--dark-gray);
}

/* Deleting is the red one, and only when it is ready to be pressed. */
.account-button--danger {
    background-color: var(--error);
}

.account-button--danger:hover {
    background-color: #a90e1d;
}

.account-button--danger[disabled]:hover {
    background-color: var(--error);
}

@media (prefers-reduced-motion: reduce) {
    .account-spinner {
        animation: none;
    }
}
