/* Native inputs on the static login page, styled to match MudBlazor. */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    color: var(--mud-palette-text-secondary);
    font-family: var(--mud-typography-default-family);
    font-size: var(--mud-typography-body2-size);
}

.login-field input {
    font: inherit;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    background: transparent;
    color: var(--mud-palette-text-primary);
}

.login-field input:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -1px;
}

/* Canvas editor: a picture with boxes on it, positioned in percent of the picture. */
.editor-stage {
    position: relative;
    width: 100%;
    line-height: 0;
    user-select: none;
    touch-action: none;
    background: #000;
}

.editor-stage > img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.editor-box {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid var(--mud-palette-warning);
    background: rgba(255, 200, 0, 0.08);
    cursor: move;
}

.editor-box.photo { border-color: var(--mud-palette-info); background: rgba(0, 150, 255, 0.06); }

.editor-box.point {
    width: auto;
    height: auto;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font: 12px/1.4 var(--mud-typography-default-family);
    white-space: nowrap;
}

.editor-box [data-resize] {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
    color: var(--mud-palette-warning);
    cursor: nwse-resize;
}

.editor-box.photo [data-resize] { color: var(--mud-palette-info); cursor: ew-resize; }
