﻿/* =========================================================================
   Standalone watermark styles for ASP.NET WebForms pages
   OVERLAY VERSION - watermark sits ABOVE page content
   ========================================================================= */

html,
body,
form {
    height: 100%;
    margin: 0;
    padding: 0;
}

/*
    Main wrapper for the page.
    This now acts as a positioning container for the watermark overlay.
*/
.watermark-page {
    position: relative;
    min-height: 100vh;
}

    /*
    The watermark overlay.
    This sits ABOVE all page content inside .watermark-page.
    The actual repeated watermark image is supplied dynamically from JS
    using the CSS variable --watermark-image.
*/
    .watermark-page::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        pointer-events: none;
        background-image: var(--watermark-image);
        background-repeat: repeat;
        background-position: 0 0;
        background-size: 320px 160px;
    }

/*
    Keep actual page content in a lower stacking layer than the watermark.
*/
.watermark-page-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

/*
    Optional card styling.
    Keep this lower than the watermark overlay.
*/
.watermark-card {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #dcdcdc;
    padding: 20px;
    margin-bottom: 20px;
}
