.auth-stage {
    position: relative;
    width: 100%;
}

.auth-panel {
    width: 100%;
}

html:not(.js) .auth-panel:not(.is-active) {
    display: none;
}

.js .auth-panel:not(.is-active) {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.js .auth-panel.is-active {
    position: relative;
    display: block;
    visibility: visible;
}

.switch-copy a {
    margin: 0;
    padding: 0;
    color: var(--fv-blue);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color .18s ease;
}

.switch-copy a:hover {
    color: #8dd3ff;
}

.switch-copy a:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(77, 184, 255, .72);
    outline-offset: 3px;
}

.oauth-button[href] {
    cursor: pointer;
    text-decoration: none;
}

.oauth-button[href]:hover {
    border-color: rgba(77, 184, 255, .6);
    background: rgba(77, 184, 255, .06);
}

.alert.error {
    border: 1px solid rgba(255, 133, 150, .3);
    color: var(--fv-danger);
    background: rgba(255, 133, 150, .08);
}

.primary-button:disabled {
    cursor: wait;
    opacity: .68;
    transform: none;
}

.sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.cfx-confirm-profile,
.cfx-confirm-target {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--fv-line);
    border-radius: 9px;
    background: var(--fv-field);
}

.cfx-confirm-profile img,
.cfx-confirm-profile > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(77, 184, 255, .42);
    border-radius: 9px;
    object-fit: cover;
    color: var(--fv-blue);
    background: rgba(77, 184, 255, .1);
    font-weight: 800;
}

.cfx-confirm-profile div,
.cfx-confirm-target { min-width: 0; }
.cfx-confirm-profile small,
.cfx-confirm-target small { display: block; color: var(--fv-dim); font-size: 10px; }
.cfx-confirm-profile strong,
.cfx-confirm-target strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfx-confirm-profile p,
.cfx-confirm-target p { margin: 3px 0 0; overflow: hidden; color: var(--fv-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cfx-confirm-target { display: block; margin-top: 12px; }
.cfx-confirm-note { margin: 16px 0 0; color: var(--fv-muted); font-size: 12px; line-height: 1.6; }
.cfx-confirm-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 18px; }
.cfx-confirm-actions form { margin: 0; }
.cfx-confirm-actions .primary-button { margin: 0; }
.secondary-button { width: 100%; height: 43px; border: 1px solid var(--fv-line); border-radius: 8px; color: var(--fv-muted); background: transparent; cursor: pointer; }
.secondary-button:hover { color: var(--fv-text); border-color: rgba(120,170,255,.3); }
