/* css/core.css */

:root {
    /* The core purple brand color */
    --trb-brand-color: #b05cfd;
    --trb-brand-color-hover: #8341bf;
    --trb-focus-color: #AD6DF0;
    --trb-focus-shadow: rgba(130, 36, 227, 0.22);
}

/* ==========================================================================
   Global Field Highlight Utility
   Matches original: .daluna-field-highlight
   ========================================================================== */

.trb-field-highlight {
    transition: border-color 0.15s ease-in-out,
                box-shadow 0.15s ease-in-out,
                outline-color 0.15s ease-in-out;
    outline: 1px solid transparent;
    outline-offset: 0px;
}

input.trb-field-highlight:focus,
textarea.trb-field-highlight:focus,
select.trb-field-highlight:focus,
code.trb-field-highlight:focus {
    border-color: var(--trb-focus-color) !important; 
    outline-color: var(--trb-focus-color) !important;
    box-shadow: 0px 0px 6px var(--trb-focus-shadow) !important;
}

/* ==========================================================================
   Minimalistic Page Template (Ported from Daluna)
   ========================================================================== */

/* 
   1. The Parent Wrapper
   In Daluna, this targeted 'body.page-template-... .wp-site-blocks'.
   Here, we use :has() to detect if our custom class is present inside the block.
   This replicates the "Template" behavior without needing a specific template file.
*/
.wp-site-blocks:has(.minimal-content-area) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 
   2. The Content Area 
   (Exact properties from Daluna's .minimal-content-area)
*/
.minimal-content-area {
    /* Pushes the footer to the bottom */
    flex-grow: 1; 
    
    /* Centers the content (Login Form) */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Ensure it takes up width to center properly */
    width: 100%; 
    flex-direction: column; /* Added for safety to stack content vertically */
}