/* Compatibility CSS for the old cached template. */
@import url('/static/css/auth.css');

#zp-temp-test-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 8px;
    width: min(900px, calc(100% - 36px));
    margin: 0 auto;
    padding: 10px;
    border: 1px solid rgba(243, 205, 102, 0.35);
    border-radius: 12px;
    background: rgba(4, 19, 13, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(0.9);
    backdrop-filter: blur(14px) saturate(0.9);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
    font-family: 'Nunito Sans', sans-serif;
}

#zp-temp-test-panel button {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(243, 205, 102, 0.55);
    border-radius: 7px;
    background: rgba(6, 23, 14, 0.9);
    color: #f3cd66;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, filter 0.15s ease;
}

#zp-temp-test-panel button:hover {
    background: rgba(14, 45, 29, 0.96);
    filter: brightness(1.08);
}

#zp-temp-test-panel button:active {
    transform: translateY(1px);
}

#zp-temp-test-panel #zp-temp-login,
#zp-temp-test-panel #zp-temp-register,
#zp-temp-test-panel #zp-temp-logout {
    display: none;
}

.zp-test-toast {
    position: fixed;
    left: 50%;
    bottom: 86px;
    z-index: 100001;
    max-width: min(420px, calc(100% - 32px));
    padding: 11px 16px;
    border: 1px solid rgba(243, 205, 102, 0.4);
    border-radius: 9px;
    background: rgba(4, 19, 13, 0.92);
    color: #f4e4b5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font: 600 13px/1.4 'Nunito Sans', sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.zp-test-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.zp-test-toast[data-type='success'] {
    border-color: rgba(46, 204, 113, 0.45);
    color: #c8f0c0;
}

.zp-test-toast[data-type='error'] {
    border-color: rgba(231, 76, 60, 0.5);
    color: #ffc9c0;
}

@media (max-width: 760px) {
    #zp-temp-test-panel {
        right: 10px;
        bottom: 10px;
        left: 10px;
        grid-template-columns: repeat(3, 1fr);
        width: auto;
    }

    #zp-temp-test-panel button {
        font-size: 10px;
    }

    .zp-test-toast {
        bottom: 112px;
    }
}
