/* local_usuariohelp — login helper (scoped) */

.fca-uh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 4px 0 14px;
    padding: 14px 18px;
    border: 2px solid #d4a017;
    border-radius: 12px;
    background: #7a1f2b;
    color: #fff8f2;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(122, 31, 43, 0.28);
    animation: fcaUhPulse 2.4s ease-in-out infinite;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.fca-uh-btn:hover,
.fca-uh-btn:focus {
    background: #941f30;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(122, 31, 43, 0.36);
    color: #fff;
    outline: none;
}

.fca-uh-btn:active {
    transform: translateY(0);
}

.fca-uh-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.fca-uh-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: rgba(18, 8, 10, 0.62);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.fca-uh-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.fca-uh-dialog {
    width: min(520px, 100%);
    max-height: min(92vh, 740px);
    overflow: auto;
    border-radius: 18px;
    background: #fffdf9;
    color: #2a1b1d;
    box-shadow: 0 24px 60px rgba(20, 8, 10, 0.35);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.24s ease;
}

.fca-uh-overlay.is-open .fca-uh-dialog {
    transform: translateY(0) scale(1);
}

.fca-uh-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 14px;
    background: linear-gradient(180deg, #fffdf9 70%, rgba(255, 253, 249, 0));
}

.fca-uh-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a6a2b;
}

.fca-uh-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #4a121a;
}

.fca-uh-sub {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #6b5558;
}

.fca-uh-x {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3ebe6;
    color: #4a121a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fca-uh-x:hover {
    background: #eadcd6;
}

.fca-uh-body {
    padding: 4px 22px 22px;
}

.fca-uh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.fca-uh-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: #4a121a;
}

.fca-uh-field input,
.fca-uh-field textarea {
    width: 100%;
    border: 1px solid #e4d5ce;
    border-radius: 10px;
    background: #fff;
    padding: 11px 12px;
    font-size: 15px;
    color: #2a1b1d;
}

.fca-uh-field input:focus,
.fca-uh-field textarea:focus {
    outline: 2px solid #c4a05a;
    border-color: #c4a05a;
}

.fca-uh-field textarea {
    min-height: 110px;
    resize: vertical;
}

.fca-uh-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.fca-uh-primary,
.fca-uh-ghost,
.fca-uh-wa,
.fca-uh-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    text-decoration: none;
    border: 0;
}

.fca-uh-primary {
    background: #7a1f2b;
    color: #fff;
}

.fca-uh-primary:hover,
.fca-uh-primary:focus {
    background: #941f30;
    color: #fff;
}

.fca-uh-primary[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.fca-uh-ghost {
    margin-top: 10px;
    background: transparent;
    color: #7a1f2b;
    border: 1px solid #e0c9c4;
}

.fca-uh-ghost:hover {
    background: #f8eee9;
    color: #7a1f2b;
}

.fca-uh-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecea;
    color: #7a1f2b;
    font-size: 13.5px;
}

.fca-uh-alert.is-ok {
    background: #e8f6ee;
    color: #1d5c38;
}

.fca-uh-cred {
    margin: 8px 0 16px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eedfd6;
}

.fca-uh-cred dt {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a6a2b;
}

.fca-uh-cred dd {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    word-break: break-all;
    color: #4a121a;
}

.fca-uh-cred dd:last-child {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    color: #5c4a4d;
}

.fca-uh-userrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fca-uh-userrow button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
    background: #f4e6c8;
    color: #5a3d10;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.fca-uh-actions {
    display: grid;
    gap: 10px;
    margin: 16px 0 8px;
}

.fca-uh-wa {
    background: #128c7e;
    color: #fff;
}

.fca-uh-wa:hover {
    background: #0e7a6e;
    color: #fff;
}

.fca-uh-mail {
    background: #1f3a5f;
    color: #fff;
}

.fca-uh-mail:hover {
    background: #274a78;
    color: #fff;
}

.fca-uh-panel {
    display: none;
}

.fca-uh-panel.is-active {
    display: block;
    animation: fcaUhIn 0.28s ease;
}

@keyframes fcaUhPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(122, 31, 43, 0.28); }
    50% { box-shadow: 0 8px 26px rgba(212, 160, 23, 0.45); }
}

@keyframes fcaUhIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.fca-uh-filehint {
    font-size: 12px;
    color: #7a686b;
}

@media (max-width: 560px) {
    .fca-uh-overlay {
        padding: 0;
        align-items: stretch;
    }

    .fca-uh-dialog {
        width: 100%;
        max-height: 100%;
        min-height: 100%;
        border-radius: 0;
    }

    .fca-uh-head h2 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fca-uh-btn,
    .fca-uh-overlay,
    .fca-uh-dialog,
    .fca-uh-panel {
        transition: none;
        animation: none;
    }
}
