/* Shared public header controls */
.public-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.575rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    height: 38px;
    min-height: 38px;
}

.public-header-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.4);
}

.public-header-btn.public-header-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.public-header-btn.public-header-btn-primary:hover {
    filter: brightness(1.05);
}

.public-header-input {
    min-width: 165px;
    height: 37px;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.public-header-input::placeholder {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.public-header-input:focus {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.22);
}

.public-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 37px;
    height: 37px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}

.public-header-toggle input {
    width: 15px;
    height: 15px;
    accent-color: #93c5fd;
    margin: 0;
}

/* Global white header variant */
.global-public-header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.global-public-header .public-header-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
    padding: 0 1rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.global-public-header .public-header-btn:hover {
    filter: brightness(1.05) !important;
    transform: translateY(-1px) !important;
}

.global-public-header .public-header-btn.public-header-btn-primary {
    color: #ffffff !important;
    border-color: transparent !important;
}

@media (max-width: 900px) {
    .global-public-header .public-header-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .public-header-input {
        width: 100%;
        min-width: 0;
        font-size: 0.8rem;
        padding: 0.45rem 0.65rem;
    }
}
